From 860d795ba1af396f8a97eaf2f6ee8a5cec493242 Mon Sep 17 00:00:00 2001 From: Roch Bertucat Date: Thu, 10 Dec 2020 10:35:13 +0100 Subject: [PATCH] Add a way to generate a report after the tests in the same command --- src/ifcbimtester/startbimtester.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 :-)")