I have several VB class libraries. For each library I had a test project with test files.
Everything worked just fine. NCrunch discovered and ran the tests, computed
Metrics. I saw the metrics in the NCrunch Metrics window.
For better or worse, I was asked to copy the class libraries and test files
into a new project (not what I wanted to do since now I have two sets of
code...)
However, in the new project the Metrics for all main code files shows as 0.00%.
Metrics for the test files in the Tests project range from 33.73% to 100%
(as expected).
A few things I did to reset the environment:
- In the old project I set NCrunch to run tests manually.
In the new project I set NCrunch to run automatically.
In the new project I changed NCrunch to run tests manually.
Metrics for the main code still shows 0.00%.
- I disabled and enabled NCrunch.
Metrics for the main code still shows 0.00%.
- I restarted VS 2019.
Metrics for the main code still shows 0.00%.
Visual Studio 2019.
NCrunch 4.4.0.12
NUnit 3.12.0
ASP.NET Framework 4.7.2