Commit d677c945 authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'feature/42-remove-spurious-failed-0' into 'dev'

src/should.py: remove a spurious 'failed:0' with --xml

Closes #42

See merge request !17
parents 9fa1477a 4dabf3b0
Pipeline #71762 passed with stages
in 13 seconds
......@@ -1069,7 +1069,7 @@ class FileSet():
{'id': 'Test at %s' % datetime.datetime.now().isoformat(),
'name': 'tested by should',
'tests': str(self.stats_tests.total()),
'failures': str(len(self.stats_tests[False])),
'failures': str(len(self.stats_tests[False]) if False in self.stats_tests else 0),
})
for s in self.sets:
......
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