Output is not reported for a step that failed
class ModelName:
def vertex_A(self):
print("Log message.")
raise Exception
$ altwalker online tests -m models/model.json "random(never)"
...
[2019-03-12 15:31:38.139298] ModelName.vertex_A Status: FAIL
[2019-03-12 15:31:38.140745]
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/altwalker/walker.py", line 127, in _run_step
output = self._executor.execute_step(model, name, self._data)
File "/usr/local/lib/python3.7/site-packages/altwalker/executor.py", line 122, in execute_step
return get_output(func, *args[:nr_args])
File "/usr/local/lib/python3.7/site-packages/altwalker/executor.py", line 16, in get_output
callable(*args, **kargs)
File "tests/test.py", line 6, in vertex_A
raise Exception
The output of the step is not reported if the step failed.
Expected output:
$ altwalker online tests -m models/model.json "random(never)"
...
[2019-03-12 15:31:38.139298] ModelName.vertex_A Status: FAIL
Output:
Log message.
[2019-03-12 15:31:38.140298]
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/altwalker/walker.py", line 127, in _run_step
output = self._executor.execute_step(model, name, self._data)
File "/usr/local/lib/python3.7/site-packages/altwalker/executor.py", line 122, in execute_step
return get_output(func, *args[:nr_args])
File "/usr/local/lib/python3.7/site-packages/altwalker/executor.py", line 16, in get_output
callable(*args, **kargs)
File "tests/test.py", line 6, in vertex_A
raise Exception
Edited by Robert Dezmerean