From 61a02aa18711da7ba4f9964c7ef351aa55c775b1 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 27 Nov 2023 16:07:25 +0100 Subject: [PATCH] cleanup --- src/runner.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/runner.py b/src/runner.py index b050bfc..2aa814b 100644 --- a/src/runner.py +++ b/src/runner.py @@ -57,12 +57,15 @@ class Runner: command_arguments.append(str(self.dotenv_path)) command_arguments.append("--output_dir") - command_arguments.append(str(self.output_dir)) + command_arguments.append(str(self.DIRS.OUTPUT)) command_arguments.append("--session_id") command_arguments.append(self.session_id) # artifacts dir + # warning: https://github.com/microsoft/playwright-pytest/issues/111 + # --output only works with the given context and page fixture + # folder needs to be unique! traces will not appear, if every pytest run has same output dir output = self.DIRS.RESULTS / full_test_path.stem command_arguments.append("--output") command_arguments.append(str(output)) @@ -71,8 +74,6 @@ class Runner: command_arguments.append("--tracing") command_arguments.append("retain-on-failure") # command_arguments.append("on") - # warning: https://github.com/microsoft/playwright-pytest/issues/111 - # --output only works with the given context and page fixture # Disable capturing. With -s set, prints will go to console as if pytest is not there. # command_arguments.append("-s")