You can collect coverage information from managed code during execution of NUnit tests by running the built-in
test configuration. For example:Run VSTest Tests with Coverage
dottestcli.exe -solution "C:\Devel\FooSolution\FooSolution.sln" -config "builtin://Run VSTest Tests with Coverage" -report "C:\Report
See Unit Testing for information about setting up and executing unit tests.