diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-06-14 00:14:59 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-06-14 03:57:15 +0200 |
commit | 088ac89c10a1a69fdb14dc13280dacd2830a7d29 (patch) | |
tree | 952168ca0d9e4018c4115a8b47e528f2cacd3e3e /functest/core/unit.py | |
parent | fb3ef61a03cdf2fb938d771e9d23f6435cff240f (diff) |
Update Suite details pushed to DB
It now reports stats and dumps stream into details.
By the way, it fixes a bug when serializing the former details.
Change-Id: Idd388708071ca3185e5a07bc7e977f2d9837dc95
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/core/unit.py')
-rw-r--r-- | functest/core/unit.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/functest/core/unit.py b/functest/core/unit.py index 515a2080..61b5a58d 100644 --- a/functest/core/unit.py +++ b/functest/core/unit.py @@ -74,8 +74,11 @@ class Suite(testcase.TestCase): stream=stream, verbosity=2).run(self.suite) self.__logger.debug("\n\n%s", stream.getvalue()) self.stop_time = time.time() - self.details = {"failures": result.failures, - "errors": result.errors} + self.details = { + "testsRun": result.testsRun, + "failures": len(result.failures), + "errors": len(result.errors), + "stream": stream.getvalue()} self.result = 100 * ( (result.testsRun - (len(result.failures) + len(result.errors))) / |