Mac安装Allure

Posted x1you

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mac安装Allure相关的知识,希望对你有一定的参考价值。

  1. 安装Homebrew

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

  2. Homebrew更换国内镜像源

    # 替换 brew.git 仓库地址
      cd "$(brew --repo)" 
      git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
      # 同下面一行命令
      git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git 
    
    # 替换 homebrew-core.git 仓库地址
      cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" 
      git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
      #
      git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
    
    # 替换 homebrew-cask.git 仓库地址
      cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"
      git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
      # 
      git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
    
    # 替换 homebrew-bottles 访问地址
      vim ~/.zshrc
      export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
      # 保存后
      source ~/.zshrc
    
  3. 终端输入命令进行安装

    brew install allure

  4. 成功

    技术图片

以上是关于Mac安装Allure的主要内容,如果未能解决你的问题,请参考以下文章

Mac Jenkins 生成allure报告 报错ERROR: Step ‘Allure Report’ aborted due to exception:

mac下 jenkins配置allure commandline报错 is not a directory on the Jenkins master (but perhaps it exists o

MAC jenkins生成allure报告失败提示:错误:找不到无法加载主类 io.qameta.allure.CommandLine

Python+pytest生成完美Allure报告入门

Python+pytest生成完美Allure报告入门

jenkins学习8-生成Allure报告(Allure Jenkins Plugin)