vstest.console not createing Code Coverage report

Miske, Stephan M 1 Reputation point
2021-08-05T21:40:05.37+00:00

I have an ASP.net application with unit test and I can't seem to get the code coverage
I have checked Code coverage enabled and I have checked Upload test attachments.

$(Build.BinariesDirectory)\test*UnitTests*.dll
!$(Build.BinariesDirectory)\test**testadapter.dll
!$(Build.BinariesDirectory)\test*testcentric**

when I run I see NUnit3TestExecutor discovered 22 of 22 NUnit test cases using Current Discovery mode, Non-Explicit run
Test Run Successful.
2021-08-05T17:41:06.2258424Z Total tests: 22
2021-08-05T17:41:06.2258485Z Passed: 22
2021-08-05T17:41:06.2258555Z Total time: 19.0859 Seconds
when I go to look at the code coverage *_2021-08-05.12_40_46.coverage.trx that was generated.

I only see code coverage for nunit3.testadapter.dll, nothing for the DLL with the 22 cases.

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
333 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Miske, Stephan M 1 Reputation point
    2021-08-13T11:48:51.907+00:00

    Where is this "Test platform version" I had sent you a screen shot of my parameters and I do not see this one.


  2. أرسلت لك لقطة شاشة لمعلماتي ولا أرى هذه.

    0 comments No comments