Follow the procedure below to load coverage results into Visual Studio Code.
- Install the
<INSTALL_DIR>/integration/vscode/parasoft_cpptest_vscode.vsix
extension. - Ensure the C/C++test> Show Advanced Coverage option is enabled in the Visual Studio Code settings.
- Open your C/C++ project.
- Ensure the corresponding coverage data files (.cov) are located in the
<WORKSPACE_DIR>/.coverage
folder or go to C/C++test> Coverage Data Folder in Visual Studio Code settings and configure the folder.Ensure the coverage data files are indexed withcpptestcov index
. - Use the
C/C++test: Show Coverage...
command to load coverage results into the active code editor.