You can use dotCover with any continuous integration (CI) server to add test coverage reports to the artifacts of your builds of .NET applications. dotCover supports several output formats. For example, you can set up your build script to take the HTML output and publish it or to take the XML output and apply further XSLT transformations for your particular needs.
Tip
dotCover Console Runner can work without Visual Studio, therefore it is not necessary to install Visual Studio on the server.
- Install dotCover on your CI server.
- Configure your build script to run the console runner ([dotCoverInstallDirectory]\Bin\dotCover.exe) after all your assemblies are built. For example, you can run the analyse command: dotCover analyse config.xml
- Configure the console runner to start the desired test runner (MSTest, NUnit, xUnit, MSpec, etc.) with necessary parameters, and create the desired output. For more information, see Console Runner Configuration.
