I am using DotCover on test assemblies in order to produce coverage reports for Sonar to use. Currently Sonar is showing zero coverage for some classes that I know for sure DO have coverage (e.g. I see coverage when I run the tests in Visual Studio 2013).
When I execute DotCover from the command-line (analyse command - output HTML report) against an assembly containing tests, it produces one main HTML file and a large number (923) sub-files.
When I open the HTML file in a browser, I see a coverage tree on the LHS. This coverage tree appears to be accurate and complete.
Problem - when I drill down to see the detailed coverage for a particular class (one where VS2013 shows coverage but Sonar does not), I see the message "No source available" on the RHS.
(If I do the same for a class that Sonar shows coverage for, I see the source with highlighted coverage in the RHS.)
If I GREP the HTML files for the name of a class where Sonar has coverage, I find references in the main HTML file and at least one sub-file.
When I do the same for the name of a class where Sonar has no coverage, I find references ONLY in the main HTML file. The sub-file containing the detailed information is missing.
Sonar uses the information in the sub-files to produce its coverage report, so missing information here adversely impacts the accuracy of the results produced by Sonar.
I have tried running DotCover with logging enabled. The log file produced is attached. It contains a number of exception traces that may be indicative of a problem.
Is this a known issue? Are there any work-arounds?
I am running using DotCover 126.96.36.199. Is there a later version I can try?