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

use coverlet with binary based tests using dotnet vstest #489

Closed
TFTomSun opened this issue Jul 15, 2019 · 4 comments
Closed

use coverlet with binary based tests using dotnet vstest #489

TFTomSun opened this issue Jul 15, 2019 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@TFTomSun
Copy link
Contributor

TFTomSun commented Jul 15, 2019

is there a possibility to use coverlet with dotnet vstest (not to confuse with dotnet test)?
dotnet vstest takes test assemblies as parameters.

btw. i tried to add the switch --collector:"XPlat Code Coverage" but i got the message that the collector couldn't be found. How do i need to publish my test assembly to make it available?

@tonerdo
Copy link
Collaborator

tonerdo commented Jul 15, 2019

@TFTomSun what version of the .NET CLI are you using?

@TFTomSun
Copy link
Contributor Author

TFTomSun commented Jul 16, 2019

@tonerdo 3.0 preview-6, but the test assembly has target framework net472
I try another way, I use the coverlet global tool instead in conjuction with dotnet vstest. Looks promising so far.

@MarcoRossignoli
Copy link
Collaborator

I think could be related to #456 (comment)

@MarcoRossignoli MarcoRossignoli added the duplicate This issue or pull request already exists label Jul 16, 2019
@MarcoRossignoli
Copy link
Collaborator

You can follow the guide https://github.com/tonerdo/coverlet/blob/master/Documentation/VSTestIntegration.md rember to publish the project before.

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