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

How could one use coverlet when running from a console application #483

Closed
Lutando opened this issue Jul 4, 2019 · 2 comments
Closed

How could one use coverlet when running from a console application #483

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

Comments

@Lutando
Copy link

Lutando commented Jul 4, 2019

Is it possible to run coverlet from a console test app like illustrated here and if so could I be pointed in the right direction on where to look?

We have some custom tests that are written in a similar fashion to the above example for various reasons.

Any help appreciated :)

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

MarcoRossignoli commented Jul 4, 2019

dup of #212

At the moment we don't offer "official supported package" to use coverlet engine, you can find reasons on thread.
Feel free to re-open if I misunderstood your question.

@Lutando
Copy link
Author

Lutando commented Jul 18, 2019

If anybody passes by

If all you want to do is see how running assembly Foo covers Assembly Bar. A does not have to be a test assembly, as in, it does not have to be a test runner application, it can be any runnable .net application. If Foo is a console app you can do:

coverlet /path/to/Foo.dll --target "dotnet" --targetargs "run /path/to/Bar --no-build"
where Foo is a standard console app an Bar is potentially a library of sorts

This to me seems cleaner than consuming the forked package that came from #212

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

2 participants