Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top