Help configuring project with new MS code coverage option #261
-
I've had my repo setup to use the "old method" of configuring FCC but I want to try and get it setup to use MS code coverage since it meets my use cases better. However, I've had mixed success and I'm hoping to get some help. I've been able to remove my existing However, I want to be able to configure my own FYI: I'm not sure if this is a problem, but even when MS code coverage appears to work, I get the following error message in the FCC output.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Firstly the exception you encountered. The RunMsCodeCoverage option has to apply to all the test projects and as such should only be specified as a vs option. I will update the docs. With regards to the test adapter - this needs to point to the location of the dll. For the one that comes with FCC this is You did not need to install the package as FCC will provide the TestAdaptersPaths to the test framework ( without touching your runsettings file ) |
Beta Was this translation helpful? Give feedback.
Firstly the exception you encountered. The RunMsCodeCoverage option has to apply to all the test projects and as such should only be specified as a vs option. I will update the docs.
With regards to the test adapter - this needs to point to the location of the dll. For the one that comes with FCC this is
C:\Users\YOU\AppData\Local\FineCodeCoverage\msCodeCoverage\17.1.0\build\netstandard1.0.
If you are installing the nuget package then you should use your nuget installation path - C:\Users\YOU.nuget\packages\microsoft.codecoverage
You did not need to install the package as FCC will provide the TestAdaptersPaths to the test framework ( without touching your runsettings file )