Skip to content

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

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

Merged
merged 1 commit into from
Oct 31, 2019

Conversation

SeppoTakalo
Copy link
Contributor

Description (required)

When running unittests with --coverage option, it only tells you that code coverage report created. but without specifying where it went.

This small change makes it verbose to show where the coverage output was generated. Easier for end user to find it.

Summary of change (What the change is for and why)

Display full path of generated coverage output from unittests.

Pull request type (required)

[X] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results (required)

[] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[X] Tests / results supplied as part of this PR
$ mbed test --unittest --coverage both

...

100% tests passed, 0 tests failed out of 47

Total Test time (real) =   0.51 sec




HTML code coverage report created in /Users/seppo/src/mbed-os/BUILD/unittests/coverage/index.html


XML code coverage report created in /Users/seppo/src/mbed-os/BUILD/unittests/coverage.xml

Reviewers (optional)

@ARMmbed/mbed-os-test

@ciarmcom ciarmcom requested a review from a team October 29, 2019 10:00
@ciarmcom
Copy link
Member

@SeppoTakalo, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@SeppoTakalo SeppoTakalo requested review from lorjala, OPpuolitaival and a team and removed request for OPpuolitaival and lorjala October 31, 2019 12:01
@mbed-ci
Copy link

mbed-ci commented Oct 31, 2019

Test run: SUCCESS

Summary: 1 of 1 test jobs passed
Build number : 1
Build artifacts

Copy link
Contributor

@OPpuolitaival OPpuolitaival left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@SeppoTakalo
Copy link
Contributor Author

Why "travis-ci/pr" does not finish?

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 31, 2019

Sometimes the hook is not updated, I'll restart it

@0xc0170 0xc0170 merged commit bf4d51e into master Oct 31, 2019
@SeppoTakalo SeppoTakalo deleted the feature_unittest_output branch November 5, 2019 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants