This commit is contained in:
Bojan Serafimov
2022-11-15 23:08:22 -05:00
parent accbf4a313
commit 612f1f2dba
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -457,7 +457,10 @@ def pytest_terminal_summary(
if prop["unit"] == "s":
neon_value = prop["value"]
vanilla_value = dict(vanilla_report.user_properties)[key]["value"]
ratio = float(neon_value) / vanilla_value
try:
ratio = float(neon_value) / vanilla_value
except ZeroDivisionError:
ratio = 99999
results.append((ratio, name.replace("[neon", "[neon/vanilla"), prop["name"]))
+2
View File
@@ -2661,6 +2661,8 @@ def test_output_dir(request: FixtureRequest, top_output_dir: Path) -> Iterator[P
yield test_dir
shutil.rmtree(test_dir)
allure_attach_from_dir(test_dir)