Follow the procedure below to load coverage results into Visual Studio Code.
- Install the C/C++test Extension for Visual Studio Code from the Marketplace (https://marketplace.visualstudio.com/items?itemName=parasoft.vscode-cpptest) or a local file (
<INSTALL_DIR>/integration/vscode/parasoft_cpptest_vscode.vsix). - 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>/.coveragefolder 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.