BIMTester custom schema is now specified as an argument, not as a test requirement, which is where it belongs.

This commit is contained in:
Dion Moult
2021-02-02 16:11:38 +11:00
parent ac95fb1aa2
commit 7c1a23e5e3
2 changed files with 8 additions and 15 deletions
+2 -3
View File
@@ -14,15 +14,14 @@ parser.add_argument("-f", "--feature", type=str, help="Specify a feature file to
parser.add_argument("-i", "--ifc", type=str, help="Specify a ifc file", required=True)
parser.add_argument("-p", "--path", type=str, help="Define a path for use in tests")
parser.add_argument("-r", "--report", type=str, help="Specify an output file for a HTML report")
parser.add_argument("--schema", type=str, help="Specify an output file for a HTML report")
parser.add_argument("--lang", type=str, help="Specify a language", default="")
args = vars(parser.parse_args())
if args["action"] == "run":
report_json = bimtester.run.TestRunner(args["ifc"]).run(args)
report_json = bimtester.run.TestRunner(args["ifc"], schema=args["schema"] or None).run(args)
if args["report"]:
bimtester.reports.ReportGenerator().generate(report_json, args["report"])
elif args["action"] == "purge":
bimtester.clean.TestPurger().purge()
print("# All tasks are complete :-)")