Browse Source

JW第二次提交

“蒋伟” 1 năm trước cách đây
mục cha
commit
3456abfd4a
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      run.py

+ 5 - 2
run.py

@@ -7,7 +7,10 @@ import pytest
 if __name__ == '__main__':
     pytest.main(['-vs'])
     time.sleep(3)
-    os.system("allure generate ./temps -o ./report --clean")
+    # 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")  # 打开报告
+    # 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"])