1、Allure(从github下载的)、Pytest、allure-pytest(python中pip初始化的插件)、allure(jenkins插件)
2、jenkins全局工具配置:Allure的安装目录
jenknis:构建-执行shell:
#!/bin/bash
cd ${WORKSPACE}/testingunit
#pytest test_count.py -s -q --clean-alluredir --alluredir "${WORKSPACE}/target/allure-results"
pytest -s -q --clean-alluredir --alluredir "${WORKSPACE}/target/allure-results"
exit 0
3、构建后操作:Allure Report