From 9685a1c294da90846f3d41185b600e86e1ece5af Mon Sep 17 00:00:00 2001 From: Seppo Takalo Date: Tue, 29 Oct 2019 11:10:25 +0200 Subject: [PATCH] Display full path of generated coverage output from unittests. --- UNITTESTS/unit_test/coverage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UNITTESTS/unit_test/coverage.py b/UNITTESTS/unit_test/coverage.py index add8e1d2a9..bff4b2e6c7 100644 --- a/UNITTESTS/unit_test/coverage.py +++ b/UNITTESTS/unit_test/coverage.py @@ -137,6 +137,9 @@ class CoverageAPI(object): coverage_path = os.path.join(build_path, "coverage") if not os.path.exists(coverage_path): os.mkdir(coverage_path) + coverage_output = os.path.join(coverage_path, "index.html") + else: + coverage_output = os.path.join(build_path, "coverage.xml") # Generate the command args = self._gen_cmd(output, excludes, filter_regex) @@ -145,4 +148,4 @@ class CoverageAPI(object): execute_program( args, "%s code coverage report generation failed." % output.upper(), - "%s code coverage report created." % output.upper()) + "%s code coverage report created in %s" % (output.upper(), coverage_output))