質問

I use dotCover for code coverage, and it's good, but the results appear to be written in a proprietary format, which I cannot parse.

I want to create a script that analyses my .Net code base and returns the (say) 20 classes with the lowest code coverage in a format that I can read (xml, plain text, json, ...). Does anyone know how to do this, either in dotCover or other tools

役に立ちましたか?

解決

You could use OpenCover and ReportGenerator. OpenCover generates a XML coverage report. ReportGenerator transforms this report into HTML, XML (readable) and Latex. See this blogpost for more details: http://www.palmmedia.de/Blog/2011/6/21/code-coverage-testing-with-opencover-and-partcover

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top