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

Incomplete coverage reports for multi-target tests #24

Closed
ric15ni opened this issue Nov 12, 2022 · 0 comments · Fixed by #23
Closed

Incomplete coverage reports for multi-target tests #24

ric15ni opened this issue Nov 12, 2022 · 0 comments · Fixed by #23
Labels
area:build [issue/PR] affects project files and/or build settings. area:ci [issue/PR] affects GitHub Actions. bug [issue/PR] reports / solves a bug.
Milestone

Comments

@ric15ni
Copy link
Collaborator

ric15ni commented Nov 12, 2022

Affected version(s)

2.0.15-preview

Is this a regression?

NO - This bug also affected the previous version

Context

When a test project is multi-target, VSTest generates multiple subdirectories under TestResults, each with its own coverage report.

Expected behavior

The result of merging all coverage reports is uploaded to Codecov.

Actual behavior

Coverage reports are not merged and only one of them is uploaded to Codecov.

How to reproduce

Run either build-test-pack or release workflow when a test project is multi-target. Verify that, if there is some code that only runs for one of the targets, coverage never reaches 100%, even though the test project actually covers 100% of the library code.

Configuration

n/a

Other information

No response

@ric15ni ric15ni added the bug [issue/PR] reports / solves a bug. label Nov 12, 2022
@rdeago rdeago added area:build [issue/PR] affects project files and/or build settings. area:ci [issue/PR] affects GitHub Actions. labels Nov 12, 2022
@rdeago rdeago added this to the 2.0 milestone Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:build [issue/PR] affects project files and/or build settings. area:ci [issue/PR] affects GitHub Actions. bug [issue/PR] reports / solves a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants