run.py 350 B

12345678910111213
  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") # 打开报告