-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C++ native code coverage for console app
- Loading branch information
Jakub Chocholowicz
committed
Sep 9, 2024
1 parent
d18c406
commit 5223496
Showing
8 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Scenario Description | ||
|
||
Static C++ code coverage for new Native Console App project in Visual Studio. | ||
|
||
## Collect C++ code coverage Console App | ||
|
||
1. Open Visual Studio Enterprise | ||
|
||
2. Create new Native Console App project. | ||
|
||
![alt text](create.png "Create C++ Console App Project.") | ||
|
||
3. Enable **Profile** (Configuration Properties->Linker->Advanced) flag for all projects in solution | ||
|
||
![alt text](profile-flag.png "Profile linker flag.") | ||
|
||
4. Build solution | ||
|
||
![alt text](build.png "Build solution") | ||
|
||
5. Collect code coverage in Developer PowerShell for VS Enterprise | ||
```console | ||
Microsoft.CodeCoverage.Console.exe collect --include-files .\x64\Debug\** .\x64\Debug\ConsoleApplication1.exe | ||
``` | ||
![alt text](collect.png "Collect code coverage") | ||
|
||
6. View code coverage results | ||
|
||
![alt text](results.png "Code coverage results.") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.