質問

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