Commit ede8a9b4 by Gabriel Falcao

improving the output of undefined steps containing tables

parent ca320a43
...@@ -63,7 +63,7 @@ def print_step_running(step): ...@@ -63,7 +63,7 @@ def print_step_running(step):
string = step.represent_string(step.original_sentence) string = step.represent_string(step.original_sentence)
string = wrap_file_and_line(string, '\033[1;30m', '\033[0m') string = wrap_file_and_line(string, '\033[1;30m', '\033[0m')
write_out("%s%s" % (color, string)) write_out("%s%s" % (color, string))
if step.hashes: if step.hashes and step.defined_at:
for line in step.represent_hashes().splitlines(): for line in step.represent_hashes().splitlines():
write_out("\033[1;30m%s\033[0m\n" % line) write_out("\033[1;30m%s\033[0m\n" % line)
...@@ -72,7 +72,7 @@ def print_step_ran(step): ...@@ -72,7 +72,7 @@ def print_step_ran(step):
if step.scenario.outlines: if step.scenario.outlines:
return return
if step.hashes: if step.hashes and step.defined_at:
write_out("\033[A" * (len(step.hashes) + 1)) write_out("\033[A" * (len(step.hashes) + 1))
string = step.represent_string(step.original_sentence) string = step.represent_string(step.original_sentence)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment