summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-10-18 17:51:47 +0100
committerLars Wirzenius <liw@liw.fi>2013-10-18 17:51:47 +0100
commit49846bf875da7b7b44ee8fc8744bd84b6e65cf9b (patch)
tree9420ce5892c8f99422b82face57b1e5eb6e911c4
parentb15657651e587bf66399bc1a234603fe2bd3889b (diff)
downloadcmdtest-49846bf875da7b7b44ee8fc8744bd84b6e65cf9b.tar.gz
Report number of scenarios skipped due to ASSUMING
-rw-r--r--NEWS6
-rwxr-xr-xyarn5
2 files changed, 11 insertions, 0 deletions
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: