문제

Is it possible to produce a graph of code coverage v time in Jenkins for NUnit/MSTest?

I can produce a code coverage report with OpenCover and ReportGenerator. I would prefer to be able to visualise this with a graph. The NUnit plugin only produces of a graph of tests run or test failures over time.

On a separate note, does anyone know how to get OpenCover to set the %ERRORLEVEL% batch variable is a test fails during code coverage calculation?

도움이 되었습니까?

해결책

You can use Jenkins Plot plugin - https://wiki.jenkins-ci.org/display/JENKINS/Plot+Plugin

I did it in long time ago. I was putting on graph data from IIS logs queried with logparser.

다른 팁

I created this nodejs application with the google charts output (but it may be overkill for your needs)

In the end just extract the number(s) from the summary entry at the top of the opencover (or reportgenerator) output and store that data somewhere useful then create your own graph.

As for your second issue the OpenCover documentation (a PDF/RTF that should have been installed alongside OpenCover, nuget and msi) details a switch that should do what you want.

-returntargetcode[:<opencoverreturncodeoffset>]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top