Exemplo n.º 1
0
 def _formatSteps(self, test, failed_step, failure=True):
     ret = []
     ret.append(FreshenPrettyPrint.feature(test.test.feature))
     ret.append(FreshenPrettyPrint.scenario(test.test.scenario))
     found = False
     for step in test.test.scenario.iter_steps():
         if step == failed_step:
             found = True
             if failure:
                 ret.append(FreshenPrettyPrint.step_failed(step))
             else:
                 ret.append(FreshenPrettyPrint.step_undefined(step))
         elif found:
             ret.append(FreshenPrettyPrint.step_notrun(step))
         else:
             ret.append(FreshenPrettyPrint.step_passed(step))
     return "\n".join(ret)
Exemplo n.º 2
0
 def _formatSteps(self, test, failed_step, failure=True):
     ret = []
     ret.append(FreshenPrettyPrint.feature(test.test.feature))
     ret.append(FreshenPrettyPrint.scenario(test.test.scenario))
     found = False
     for step in test.test.scenario.iter_steps():
         if step == failed_step:
             found = True
             if failure:
                 ret.append(FreshenPrettyPrint.step_failed(step))
             else:
                 ret.append(FreshenPrettyPrint.step_undefined(step))
         elif found:
             ret.append(FreshenPrettyPrint.step_notrun(step))
         else:
             ret.append(FreshenPrettyPrint.step_passed(step))
     return "\n".join(ret)
Exemplo n.º 3
0
 def before_feature(self, feature):
     print FreshenPrettyPrint.feature(feature)
     print
Exemplo n.º 4
0
 def after_step(self, step):
     print FreshenPrettyPrint.step_passed(step)
Exemplo n.º 5
0
 def step_exception(self, step, e):
     print FreshenPrettyPrint.step_exception(step)
Exemplo n.º 6
0
 def step_undefined(self, step, e):
     print FreshenPrettyPrint.step_undefined(step)
Exemplo n.º 7
0
 def step_ambiguous(self, step, e):
     print FreshenPrettyPrint.step_ambiguous(step)
Exemplo n.º 8
0
 def step_failed(self, step, e):
     print FreshenPrettyPrint.step_failed(step)
Exemplo n.º 9
0
 def before_scenario(self, scenario):
     print FreshenPrettyPrint.scenario(scenario)
Exemplo n.º 10
0
 def before_feature(self, feature):
     print FreshenPrettyPrint.feature(feature)
     print
Exemplo n.º 11
0
 def after_step(self, step):
     print FreshenPrettyPrint.step_passed(step)
Exemplo n.º 12
0
 def step_exception(self, step, e):
     print FreshenPrettyPrint.step_exception(step)
Exemplo n.º 13
0
 def step_undefined(self, step, e):
     print FreshenPrettyPrint.step_undefined(step)
Exemplo n.º 14
0
 def step_ambiguous(self, step, e):
     print FreshenPrettyPrint.step_ambiguous(step)
Exemplo n.º 15
0
 def step_failed(self, step, e):
     print FreshenPrettyPrint.step_failed(step)
Exemplo n.º 16
0
 def before_scenario(self, scenario):
     print FreshenPrettyPrint.scenario(scenario)