-
Notifications
You must be signed in to change notification settings - Fork 19
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
Usage with .NET Core #1
Comments
Thank you for kicking the tyres on this one. On your first point, about the lack of "how to", I've belatedly started to extract the practical examples onto the project wiki. As to the "it doesn't seem to work" with the 1.4.150 build; this is the show-stopper bug that emerges just when a project is winding down to completion, and is the ticket I'm working on at the moment, being something I discovered too, when adding a new self-test build step so I could get a report on how much of the code was being tested under .net core. The program works by registering a In practice it seems that running under I think the resolution has to involve a companion process that will do the work that the |
Experimentally (by putting |
I am also keen to know - what is the exact command can I ran to get coverage while running xUnit unit test using dot net core on Linux... |
So I've added an XUnit demo that's run successfully on the linux build machine at travis-ci. The steps are
Hope this helps. |
And with the latest drop (v1.5.200-rc), step 5 above can be (and would preferably be)
|
For working examples see a sample travis build. Look for This uses the "solution builds to one place, project another" shortcut, rather than a manual copy. |
And with the latest drop (v1.6.212-beta), step 5 above can be (and would preferably be) dotnet run --project /altcover.core.fsproj -- runner -x "dotnet" -r "$(ProjectDir)/bin/Debug/netcoreapp2.0" -w "$(ProjectDir)" -- test --no-build --configuration Debug $(Project) See the corresponding travis build. |
I'm having a hard time figuring out how to run my unit tests and generate the
coverage.xml
report for my assemblies... I spotted you added some more documentation this morning (thanks!), so now I'm running from inside my unit test project directory:The tests run successfully (and I think they're instrumented), but my
coverage.xml
file is the same before and after (i.e. it says no code points were hit). I've tried a bunch of different command combinations (e.g.dotnet run --project ~/Downloads/altcover.1.4.150-beta/tools/netcoreapp2.0/AltCover/ -- /o:bin/Debug/netcoreapp2.0 -- dotnet test --no-build
) but no dice :(Any pointers, or plain commands that you've been using?
P.S. Thanks for being the guy to finally bring code coverage to .NET Core!
The text was updated successfully, but these errors were encountered: