"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Performance Tools\vsinstr.exe" -coverage "%1" "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Performance Tools\VSPerfCmd.exe" /start:coverage /output:run.coverage start "%1" /wait "%1" "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Performance Tools\VSPerfCmd.exe" /shutdown notepad "run.coverage" echo "%1" echo "%2" pauseCreate an External Tool Entry in your Visual Studio Tools Menu.
- Title: RunCovered
- Command: c:\projects\config\batches\RunCovered.bat
- Initial Directory:
replace the command with wherever your new shiny batch file lives.
Then in trigger that External Tool on the Tools Menu.
It will launch your app, and you can then click around or do whatever is needed to activate parts of your application, and the results will be saved into the same directory as your executable file as run.coverage. Open this file in your already open Visual Studio instance, or drag and drop the file from explorer into VS.
There you have your App's coverage metrics for that run.