nunit / dotnet-test-nunit

Deprecated test runner for .NET Core. For use with project.json only. For recent releases of .NET Core, use the NUnit 3 Visual Studio Adapter
https://www.nuget.org/packages/dotnet-test-nunit/
MIT License
67 stars 25 forks source link

Integration with dotCover #102

Open oskaruitdebos opened 7 years ago

oskaruitdebos commented 7 years ago

Hi all,

I am attempting to create a fully functional .Net Core build configuration in Teamcity. I got the Nunit integration up-and-running using the following packages:

I can run the unit-tests from commandline (dotnet test) and the visual studio interface. Reporting in Teamcity is done using (dotnet test --teamcity). The thing I am trying to accomplish is getting code coverage information in the build configuration using dotCover.

The dotCover command expects a path to a testrunner executable, like documented here Is there a way to implement this using this testrunner?

I have tried the following:

Relevant version information: • Teamcity 9.1.5 (build 37377) • JetBrains dotCover Console Runner 10.0.2

I am out of ideas basically. I hope that someone can point me in the right direction. I realize that this is more of a questions than an issue, but this does seem like the logical place to start.

Thank you in advance for your support

Oskar uit de Bos

rprouse commented 7 years ago

I will leave this open as a question for a bit, but I don't think many people in the team use DotCover. I would recommend contacting JetBrains though, since this doesn't sound like an NUnit specific issue, but one with .NET Core and DotCover.

oskaruitdebos commented 7 years ago

Thank you for keeping the question open. I will follow up on your recommendation and contact JetBrains.

There is relevant content on the Jetbrains support forum about dotcover support for .Net Core projects in Teamcity using xUnit:

Basically there is no support at the moment. So I upvoted the ticket, but it’s open for quite a while so I don’t have high hopes for a short term solution. Will submit a support ticket anyway to see what the plan is with Nunit.

I will get back here with the results so other people may benefit.