直接使用:
brew install allure
报Error: openjdk: Calling `cellar` in a bottle block is disabled! Use `brew style --fix` on the formula to update the style or use `sha256` with a `cellar:` argument instead.
没找到解决办法
还是直接下载源码吧:
https://github.com/allure-framework/allure2/releases/tag/2.14.0
解压后,进入bin目录运行 allure
最后 vim .bash_profile 加入环境变量
生成报告:
python -m pytest --alluredir 报告目录
allure serve 报告目录 -------直接预览报告
allure generate 结果目录 -o 存放报告目录 --clean