Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display full path of generated coverage output from unittests. #11763

Merged
merged 1 commit into from
Oct 31, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion UNITTESTS/unit_test/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def generate_reports(self,
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)
Expand All @@ -145,4 +148,4 @@ def generate_reports(self,
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))