Pytest 环境:
platform linux -- Python 3.6.8, pytest-3.3.2, py-1.5.2, pluggy-0.9.0
rootdir: /home/user/pytest, inifile:
plugins: metadata-1.8.0, html-1.20.0, allure-adaptor-1.7.10
Jenkins 环境:
Jenkins ver. 2.164.2
Allure Jenkins plugin: 2.28.1
项目配置:
构建:
执行 shell:
python3 -m pytest -q test_sample.py --alluredir ${WORKSPACE}/allure-results
构建后操作:
Allure Report:
Results path: ${WORKSPACE}/allure-results
其它配置保持默认。