コード例 #1
0
ファイル: noseplugin.py プロジェクト: rubyruy/freshen
 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)
コード例 #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)
コード例 #3
0
ファイル: handlers.py プロジェクト: vjkumran/freshen
 def before_feature(self, feature):
     print FreshenPrettyPrint.feature(feature)
     print
コード例 #4
0
ファイル: handlers.py プロジェクト: B-Rich/freshen
 def before_feature(self, feature):
     print FreshenPrettyPrint.feature(feature)
     print