From e96fe23b0bdcf281ca4736837abc6d7785eba888 Mon Sep 17 00:00:00 2001 From: huanghaizhen Date: Fri, 18 Oct 2024 16:59:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86setup=E7=8A=B6?= =?UTF-8?q?=E6=80=81failed=E6=97=B6=E4=B8=8D=E4=BC=9A=E5=9B=9E=E5=A1=ABpms?= =?UTF-8?q?=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conftest.py b/conftest.py index 68c27879..bcfed1ea 100644 --- a/conftest.py +++ b/conftest.py @@ -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):