Dotcover and Karma Coverage reports together
Hello,
I'm having an issue with seeing a report from both dotcover (nunit) and karma-coverage.
Here is the basic setup:
1) Compile
2) Run nunit tests with dotcover enabled
3) Run karma tests and generate .html report (or optionally output to console as seen below)
4) Create artifact coverage.zip containing the karma coverage directory (index.html file is at the top directory of this artifact)
When this happens, only the coverage statistics from step 2 are shown on the code Coverage tab.
The documentation leads me to believe that both will be included if I have a coverage.zip artifact with an index.html report at the top level.
There is also a team city reporter for karma-coverage, but it doesn't seem to make much of a difference either.
Output is like this:
##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageB' value='44.99']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='630']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='1826']
##teamcity[buildStatisticValue key='CodeCoverageM' value='34.5']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='3479']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='7645']
##teamcity[buildStatisticValue key='CodeCoverageL' value='45.51']
##teamcity[blockClosed name='Code Coverage Summary']
It seems that DotCover is ignoring or overwriting anything I do after step 2.
Please sign in to leave a comment.
I would really prefer to navigate the .html report and not just see a coverage % number.
I'd like to be able to drill down into the actual results.
I was able to do this by adding a custom report tab:
https://confluence.jetbrains.com/display/TCD10/Including+Third-Party+Reports+in+the+Build+Results
Use coverage.zip!/index.html as the start page