Skip to content

Commit

Permalink
fix: 处理setup状态failed时不会回填pms结果
Browse files Browse the repository at this point in the history
  • Loading branch information
huanghaizhen committed Oct 18, 2024
1 parent 24879d1 commit e96fe23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ def pytest_runtest_makereport(item, call):
logger.info(testcase_url)
else:
allure.dynamic.tag(mark.name)
if report.outcome == "failed":
write_case_result(item, report)
if report.when == "call":
logger.info(f"运行结果: {str(report.outcome).upper()}")
if write_json(item.session):
Expand Down

0 comments on commit e96fe23

Please sign in to comment.