Epic bug in json output wtf :|

This commit is contained in:
Alexandre Aubin 2021-02-22 18:42:07 +01:00
parent a684cc4d1b
commit 08905f25f5

View file

@ -271,7 +271,11 @@ class TestSuite():
if "ignore" in options and self.name in options["ignore"]: if "ignore" in options and self.name in options["ignore"]:
continue continue
reports += list(test(self)) this_test_reports = list(test(self))
for report in this_test_reports:
report.test_name = test.__qualname__
reports += this_test_reports
# Display part # Display part
@ -297,8 +301,7 @@ class TestSuite():
_print("") _print("")
for report in reports: for report in reports:
test_name = test.__qualname__ tests_reports[report_type(report)].append((report.test_name, report))
tests_reports[report_type(report)].append((test_name, report))
def run_single_test(self, test): def run_single_test(self, test):