From 49846bf875da7b7b44ee8fc8744bd84b6e65cf9b Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 18 Oct 2013 17:51:47 +0100 Subject: Report number of scenarios skipped due to ASSUMING --- NEWS | 6 ++++++ yarn | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/NEWS b/NEWS index 47fbd88..f794e69 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,12 @@ NEWS for cmdtest This file summarizes changes between releases of cmdtest. +Version 0.11, released UNRELEASED +--------------------------------- + +* Report number of scenarios skipped due to an ASSUMING step + failing. + Version 0.10, released 2013-10-05 --------------------------------- diff --git a/yarn b/yarn index f4abcdc..f8ca0cd 100755 --- a/yarn +++ b/yarn @@ -125,6 +125,7 @@ class YarnRunner(cliapp.Application): self.info('Found %d scenarios' % len(scenarios)) self.scenarios_run = 0 + self.skipped_for_assuming = 0 self.steps_run = 0 self.timings = [] @@ -149,6 +150,9 @@ class YarnRunner(cliapp.Application): '(%d total steps), ' 'in %.1f seconds' % (self.scenarios_run, self.steps_run, duration)) + if self.skipped_for_assuming: + print ('Scenarios SKIPPED due to ASSUMING step failing: %d' + % self.skipped_for_assuming) if self.settings['timings']: self.report_timings() @@ -299,6 +303,7 @@ class YarnRunner(cliapp.Application): self.ts.notify( 'Skipping "%s" because "%s %s" failed' % (scenario.name, step.what, step.text)) + self.skipped_for_assuming += 1 break else: for step in normal: -- cgit v1.2.1