Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit 860d795

Browse files
committed
Add a way to generate a report after the tests in the same command
1 parent 2ac0b75 commit 860d795

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/ifcbimtester/startbimtester.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ def show_widget(features="", ifcfile=""):
4242
action="store_true",
4343
help="Generate a HTML report"
4444
)
45+
parser.add_argument(
46+
"-rr",
47+
"--report_after_run",
48+
action="store_true",
49+
help="Generate a HTML report after running the tests"
50+
)
4551
parser.add_argument(
4652
"-c",
4753
"--console",
@@ -103,4 +109,6 @@ def show_widget(features="", ifcfile=""):
103109
show_widget(args["featuresdir"], args["ifcfile"])
104110
else:
105111
run.run_tests(args)
112+
if args["report_after_run"]:
113+
reports.generate_report()
106114
print("# All tasks are complete :-)")

0 commit comments

Comments
 (0)