diff --git a/src/ifcbimtester/startbimtester.py b/src/ifcbimtester/startbimtester.py index 436a3c6703..88b755ae6a 100644 --- a/src/ifcbimtester/startbimtester.py +++ b/src/ifcbimtester/startbimtester.py @@ -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 :-)")