File tree Expand file tree Collapse file tree 8 files changed +30
-0
lines changed Expand file tree Collapse file tree 8 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 886 . [ ** Scenario 06** C++ code coverage in Visual Studio] ( scenarios/scenario06/README.md )
997 . [ ** Scenario 07** C++ code coverage in Visual Studio ARM64] ( scenarios/scenario07/README.md )
10108 . [ ** Scenario 08** Static code coverage for ASP.NET Core Web App (Razor Pages) in IIS] ( scenarios/scenario08/README.md )
11+ 9 . [ ** Scenario 09** C++ code coverage for Console App in Developer PowerShell for VS Enterprise] ( scenarios/scenario09/README.md )
Original file line number Diff line number Diff line change 1+ # Scenario Description
2+
3+ Static C++ code coverage for new Native Console App project in Visual Studio.
4+
5+ ## Collect C++ code coverage Console App
6+
7+ 1 . Open Visual Studio Enterprise
8+
9+ 2 . Create new Native Console App project.
10+
11+ ![ alt text] ( create.png " Create C++ Console App Project. ")
12+
13+ 3 . Enable ** Profile** (Configuration Properties->Linker->Advanced) flag for all projects in solution
14+
15+ ![ alt text] ( profile-flag.png " Profile linker flag. ")
16+
17+ 4 . Build solution
18+
19+ ![ alt text] ( build.png " Build solution ")
20+
21+ 5 . Collect code coverage in Developer PowerShell for VS Enterprise
22+ ``` console
23+ Microsoft.CodeCoverage.Console.exe collect --include-files .\x64\Debug\** .\x64\Debug\ConsoleApplication1.exe
24+ ```
25+ ![ alt text] ( collect.png " Collect code coverage ")
26+
27+ 6 . View code coverage results
28+
29+ ![ alt text] ( results.png " Code coverage results. ")
You can’t perform that action at this time.
0 commit comments