mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Add a way to generate a report after the tests in the same command
This commit is contained in:
@@ -42,6 +42,12 @@ if __name__ == "__main__":
|
||||
action="store_true",
|
||||
help="Generate a HTML report"
|
||||
)
|
||||
parser.add_argument(
|
||||
"-rr",
|
||||
"--report_after_run",
|
||||
action="store_true",
|
||||
help="Generate a HTML report after running the tests"
|
||||
)
|
||||
parser.add_argument(
|
||||
"-c",
|
||||
"--console",
|
||||
@@ -103,4 +109,6 @@ if __name__ == "__main__":
|
||||
show_widget(args["featuresdir"], args["ifcfile"])
|
||||
else:
|
||||
run.run_tests(args)
|
||||
if args["report_after_run"]:
|
||||
reports.generate_report()
|
||||
print("# All tasks are complete :-)")
|
||||
|
||||
Reference in New Issue
Block a user