JetBrains / TeamCity.VSTest.TestAdapter

Apache License 2.0
30 stars 14 forks source link

Nunit tests not reported after running test with dotcover #28

Closed exore closed 5 years ago

exore commented 5 years ago

I have a build with .NET core projects that use NUnit as a testing framework, and those tests are reported correctly in TeamCity when all projects have the TeamCity.VSTest.TestAdapter NuGet package dependency in the .csprojfile like such: <PackageReference Include="TeamCity.VSTest.TestAdapter" Version="1.0.13" />

The tests are run with the command: dotnet test

However, when tests are executed with dotcover with the command dotnet dotcover test @args (excluded the supplied arguments) then no tests are reported in TeamCity. However, TeamCity correctly picks up the coverage.

exore commented 5 years ago

The issue was due to the arguments I passed into dotCover.