mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
bimtester: run, move comments and add prints
This commit is contained in:
@@ -8,6 +8,10 @@ import webbrowser
|
|||||||
from behave.__main__ import main as behave_main
|
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
|
# get bimtester source code module path
|
||||||
bimtester_path = os.path.dirname(os.path.realpath(__file__))
|
bimtester_path = os.path.dirname(os.path.realpath(__file__))
|
||||||
# print(bimtester_path)
|
# print(bimtester_path)
|
||||||
@@ -26,6 +30,9 @@ def get_resource_path(relative_path):
|
|||||||
|
|
||||||
|
|
||||||
def run_tests(args):
|
def run_tests(args):
|
||||||
|
|
||||||
|
print("# Run tests.")
|
||||||
|
|
||||||
if not get_features(args):
|
if not get_features(args):
|
||||||
print("No features could be found to check.")
|
print("No features could be found to check.")
|
||||||
return False
|
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={}):
|
def run_copyintmp_tests(args={}):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@@ -325,6 +328,8 @@ def run_copyintmp_tests(args={}):
|
|||||||
|
|
||||||
def run_all(the_features_path, the_ifcfile):
|
def run_all(the_features_path, the_ifcfile):
|
||||||
|
|
||||||
|
print("# Run all.")
|
||||||
|
|
||||||
# run bimtester
|
# run bimtester
|
||||||
runpath = run_copyintmp_tests({
|
runpath = run_copyintmp_tests({
|
||||||
"featuresdir": the_features_path,
|
"featuresdir": the_features_path,
|
||||||
|
|||||||
Reference in New Issue
Block a user