Run silverlight code coverage by commandline or msbuild task

Is it  (or will it be) possible to run code coverage by dotcover commandline utility or by msbuild task ?


Hello Ralf,
In dotCover 1.0 this is not possible, but we're going to get closer to silverlight tests in the next versions.
Here are the issues for AgUnit & White frameworks support:
And I've filed a new one for silverlight coverage from command line:
Please feel free to comment/vote/add new issues to our tracker.



I've successfully covered a Silverlight application from within Visual Studio 2010. I saved a snapshot file (.dcvr extension). This seems to be a binary file. Can I somehow convert this .dcvr file into a XML file, allowing me to process it further?



Hi Andreas,
Next minor release of dotCover will contain option to generate reports from VS.
Currently you can use console runner for this purpose, but it is a bit tricky.

First you need to create "coverage result" xml (let's say c:\temp\coverage-result.xml) with the following content:

<?xml version="1.0" encoding="utf-8"?>

Next you'll need a report configuration xml (e.g. c:\temp\report-configuration.xml)

<?xml version="1.0" encoding="utf-8"?>

Finally execute console runner with the following command line:

dotCover report c:\temp\report-configuration.xml


Please sign in to leave a comment.