-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context.execute_steps: Add configuration point to enable/disable the exception tracebacks #983
Comments
Actually I do would like to omit even more ... The user should not see a sub step has been executed. Thus this seams what I am after ... here Line 412 in 9520119
if not passed:
# -- ISSUE #96: Provide more substep info to diagnose problem.
step_line = u"%s %s" % (step.keyword, step.name)
# message = "%s SUB-STEP: %s" % \
# (step.status.name.upper(), step_line)
message = ""
if step.error_message:
# message += "\nSubstep info: %s\n" % step.error_message
message = "\n%s\n" % step.error_message
# message += u"Traceback (of failed substep):\n"
# message += u"".join(traceback.format_tb(step.exc_traceback))
# message += u"\nTraceback (of context.execute_steps()):"
assert False, message We do use the context.execute_steps() method for translating system. Means any language just uses context.execute_steps() and executes the english test. See https://github.com/IfcOpenShell/IfcOpenShell/tree/4e9a5f246f2260ad6a9c1c6ffa46230a0f8b5914/src/ifcbimtester/bimtester/features/steps/project_setup |
Mhh but if the linked step has some other problems than the test errors, like some wrong code this error message is omited too if my code is used. Not smart, but fine for me ATM because this is not important for the user and I do know where to activate the error message print of the linked step. |
RELATED TO: Discussion in #981
SEE ALSO:
The text was updated successfully, but these errors were encountered: