12345678910111213141516171819 |
- import os
- import time
- import pytest
- if __name__ == '__main__':
- pytest.main(['-vs'])
- time.sleep(3)
- os.system("allure generate ./temps -o ./report --clean")
- # pytest.main() # 启动框架
- # os.system("allure generate ./temps/allure -o report --clean") # 生成报告
- # os.system("allure open report -p 0") # 打开报告
- # pytest.main(['-s', '-W', 'ignore:Module already imported:pytest.PytestWarning',
- # '--alluredir', '/var/jenkins_home/workspace/qccq/allure-report', '--clean-alluredir'])
- # os.system(r"/var/jenkins_home/allure/bin/allure generate ./allure-report -o ./report/html --clean")
|