From be5bf70dd79b8e3f7b35e222086720486c6b8791 Mon Sep 17 00:00:00 2001 From: "shao.xiaoping" Date: Mon, 29 Jan 2024 11:05:59 +0800 Subject: [PATCH] clear branch --- .github/workflows/python-playwright-pytest-bdd.yml | 6 +++--- .idea/misc.xml | 5 ++++- run.py | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-playwright-pytest-bdd.yml b/.github/workflows/python-playwright-pytest-bdd.yml index 1643422..84d733d 100644 --- a/.github/workflows/python-playwright-pytest-bdd.yml +++ b/.github/workflows/python-playwright-pytest-bdd.yml @@ -46,12 +46,12 @@ jobs: run: pipenv run python -m playwright install - name: Run test cases - run: pipenv run pytest -v --gherkin-terminal-reporter -s --color=yes --alluredir=temp -m smoke + run: pipenv run python run.py - uses: actions/upload-artifact@master with: - name: Test-allure-results - path: temp + name: Test-allure-report + path: report # upload the latest report file retention-days: 20 - name: Get Allure history # Step to retrieve Allure history diff --git a/.idea/misc.xml b/.idea/misc.xml index 639900d..9e16222 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,9 @@ - + + + \ No newline at end of file diff --git a/run.py b/run.py index 696ed7d..d414bca 100755 --- a/run.py +++ b/run.py @@ -6,7 +6,7 @@ from utils.tools import move_environment_file, generate_allure_report cmd = 'cd ' + cm.base_dir os.system(cmd) # 运行标签为smoke的测试用例集 -cmd = 'pytest -s --alluredir=temp -m smoke' +cmd = 'pytest -v --gherkin-terminal-reporter -s --color=yes --alluredir=temp -m smoke' os.system(cmd) # 生成测试结果报告到report目录下 move_environment_file()