rework-output-and-test-logic (#3)
* fix flakey tests in authentik / wordpress * make it possible to rerun tests partially -> passed will be skipped, failed will be repeated * improve organization of all outputs (moving, renaming, keeping multiple versions etc.) * add html reports, replace .txt tracebacks * combine all html reports into one * add demo runner with comments for documentation purposes Reviewed-on: local-it-infrastructure/e2e_tests#3 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
parent
d2cd6ba47f
commit
8172f685de
24 changed files with 588 additions and 418 deletions
|
|
@ -8,7 +8,6 @@ class DirManager:
|
|||
The structures is as follows:
|
||||
tests dir/
|
||||
session_dir-1/
|
||||
progress
|
||||
records
|
||||
results
|
||||
states
|
||||
|
|
@ -26,7 +25,7 @@ class DirManager:
|
|||
|
||||
def create_all_dirs(self):
|
||||
self.create_dirs(self._output_dir, exist_ok=True)
|
||||
self.create_dirs([self.SESSION, self.RECORDS, self.STATES, self.RESULTS, self.PROGRESS], exist_ok=True)
|
||||
self.create_dirs([self.SESSION, self.RECORDS, self.RECORDS / "html", self.STATES, self.RESULTS], exist_ok=True)
|
||||
|
||||
@property
|
||||
def OUTPUT(self):
|
||||
|
|
@ -48,10 +47,6 @@ class DirManager:
|
|||
def RESULTS(self):
|
||||
return self.SESSION / Path("results")
|
||||
|
||||
@property
|
||||
def PROGRESS(self):
|
||||
return self.SESSION / Path("progress")
|
||||
|
||||
@staticmethod
|
||||
def create_dirs(dirs: Path | list[Path] | dict[str, Path], exist_ok=False):
|
||||
match dirs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue