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

Please provide option to stop generating directories with random GUID #1166

Closed
lloydjatkinson opened this issue May 21, 2021 · 3 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@lloydjatkinson
Copy link

I am trying out Coverlet but unfortunately it does not seem suitable for CI/CD pipelines because it puts the generated HTML report, SVG badges etc. in a directory that is a randomly named GUID. This means that, among other things, I cannot make a repositories README file display the badges showing the coverage values as the path will be unpredictable.

@petli
Copy link
Collaborator

petli commented May 21, 2021

This is not something that Coverlet can control, unfortunately, but an issue with the underlying vstest platform. #500 discusses this extensively, and the issue is reported at microsoft/vstest#2378

The best way is to look at coverlet as a part of a toolchain, where it produces the underlying report files, which is then used to generate badges, HTML reports etc with a dedicated tool such as https://github.com/danielpalme/ReportGenerator

A CI/CD pipeline can combine the tools in a script, or as separate build steps.

@petli petli added the duplicate This issue or pull request already exists label May 21, 2021
@Malivil
Copy link

Malivil commented May 29, 2021

Can't you use the "/p:CoverletOutput" option?

@petli
Copy link
Collaborator

petli commented May 31, 2021

@Malivil: That option unfortunately only works for the msbuild driver, not for the vstest driver. The vstest driver is recommended to use over the msbuild driver, since the latter have an architectural restriction that means it may not always reliably collect all the coverage data for larger projects or in CI environments.

@petli petli closed this as completed May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants