clear branch
This commit is contained in:
parent
594a87103b
commit
be5bf70dd7
|
@ -46,12 +46,12 @@ jobs:
|
||||||
run: pipenv run python -m playwright install
|
run: pipenv run python -m playwright install
|
||||||
|
|
||||||
- name: Run test cases
|
- 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
|
- uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
name: Test-allure-results
|
name: Test-allure-report
|
||||||
path: temp
|
path: report # upload the latest report file
|
||||||
retention-days: 20
|
retention-days: 20
|
||||||
|
|
||||||
- name: Get Allure history # Step to retrieve Allure history
|
- name: Get Allure history # Step to retrieve Allure history
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectRootManager">
|
<component name="Black">
|
||||||
|
<option name="sdkName" value="Pipenv (Playwright_Pytest_BDD_Demo) (2)" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="Pipenv (Playwright_Pytest_BDD_Demo) (2)" project-jdk-type="Python SDK">
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
2
run.py
2
run.py
|
@ -6,7 +6,7 @@ from utils.tools import move_environment_file, generate_allure_report
|
||||||
cmd = 'cd ' + cm.base_dir
|
cmd = 'cd ' + cm.base_dir
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
# 运行标签为smoke的测试用例集
|
# 运行标签为smoke的测试用例集
|
||||||
cmd = 'pytest -s --alluredir=temp -m smoke'
|
cmd = 'pytest -v --gherkin-terminal-reporter -s --color=yes --alluredir=temp -m smoke'
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
# 生成测试结果报告到report目录下
|
# 生成测试结果报告到report目录下
|
||||||
move_environment_file()
|
move_environment_file()
|
||||||
|
|
Loading…
Reference in New Issue