run.py 650 B

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