From aefd4e338746404c60e0497795e4b5737a6ebda1 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Fri, 15 Jan 2021 10:43:54 +0100 Subject: [PATCH] bimtester: run, move comments and add prints --- src/ifcbimtester/bimtester/run.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/ifcbimtester/bimtester/run.py b/src/ifcbimtester/bimtester/run.py index b38db50c29..0a977c66a4 100644 --- a/src/ifcbimtester/bimtester/run.py +++ b/src/ifcbimtester/bimtester/run.py @@ -8,6 +8,10 @@ import webbrowser from behave.__main__ import main as behave_main +# TODO: if the ifc file name or path contains special character +# like German Umlaute behave gives an error + + # get bimtester source code module path bimtester_path = os.path.dirname(os.path.realpath(__file__)) # print(bimtester_path) @@ -26,6 +30,9 @@ def get_resource_path(relative_path): def run_tests(args): + + print("# Run tests.") + if not get_features(args): print("No features could be found to check.") return False @@ -99,10 +106,6 @@ reset_runtime() """ -# TODO: if the ifc file name or path contains special character -# like German Umlaute behave gives an error - - def run_copyintmp_tests(args={}): """ @@ -325,6 +328,8 @@ def run_copyintmp_tests(args={}): def run_all(the_features_path, the_ifcfile): + print("# Run all.") + # run bimtester runpath = run_copyintmp_tests({ "featuresdir": the_features_path,