Commit 7fc75ae1 authored by Mathieu Giraud's avatar Mathieu Giraud

src/should.py: display also the total number of run tests

parent 8ef69e3c
Pipeline #727 passed with stages
in 5 seconds
......@@ -470,6 +470,7 @@ class FileSet():
self.modifiers = modifiers
self.status = None
self.stats = Stats('file')
self.stats_tests = Stats('test')
def test(self, variables=None, cd=None, verbose=0):
self.status = True
......@@ -485,6 +486,8 @@ class FileSet():
if not s.status:
self.status = False
self.stats_tests += s.stats
if verbose > 0 or s.status is False:
if not verbose:
print(f, end=' ')
......@@ -493,6 +496,8 @@ class FileSet():
print('Summary', end=' ')
print(self.stats.str_status(self.status))
print('Summary', end=' ')
print(self.stats_tests.str_status(self.status))
return self.status
......
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