IBM Compiled Code Coverage
IBM Compiled Code Coverage is an extension for Visual Studio Code that provides access to compiled code coverage results produced by IBM debug engines.
Engines currently supported:
Go here for the full Documentation online.
Simplify your installation experience by using newly bundled extension packs that contain IBM Compiled Code Coverage as well as other extensions available for IDzEE and ADFz customers.
Table of contents
Prerequisites and Corequisites
Review the IBM Compiled Code Coverage Agreement, terms and conditions for separately licensed code, and Third Party Notices before downloading.
Running Code Coverage Service and Collecting Code Coverage on z/OS
In order to collect code coverage on z/OS you have one of three options:
- Using Remote Debug Service:
- Using Headless Code Coverage on z/OS UNIX:
- Using Headless Code Coverage as a started task:
Viewing Results
To view results:
- You will need to add a connection to a Code Coverage Service instance by providing the URL for the CCS instance. Note: on IBM Z, when using Remote Debug Service and Z Open Debug, this is not required.
- After providing credentials, a list of your results appear.
- Use the context menu to select the View Report action and open the report.
Importing Results
You can import .cczip coverage results into any connected CCS location directly from the VS Code extension:
- Context menu — right-click a connected location and select Import, then choose to import from the workspace or browse for files.
- Drag-and-drop — drag one or more results from one connected location and drop them onto another. Results are removed from the source location after a successful drop.
- Copy and paste — select results in a connected location, press Ctrl+C, then press Ctrl+V on a different connected location. Source results remain unchanged.
Coverage Color Thresholds
Coverage results in both the Coverage Results View and the CC Report are color-coded into three tiers:
| Color |
Icon |
Meaning |
| 🟢 Green |
✓ check |
Coverage is at or above the green threshold |
| 🟡 Yellow |
⚠ warning |
Coverage is at or above yellow, but below green |
| 🔴 Red |
✗ close |
Coverage is below the yellow threshold |
Threshold configuration — thresholds are driven by VS Code's built-in testing.coverageBarThresholds setting.
The defaults are { red: 0, yellow: 60, green: 90 }. You can override them in your settings.json:
{
"testing.coverageBarThresholds": {
"red": 0,
"yellow": 60,
"green": 90
}
}
Changing this setting while the tree view or a CC Report is open updates the colors immediately — no reload required.
Color customization — icon and bar colors follow the charts.green, charts.yellow, and charts.red VS Code color tokens (the same tokens used by VS Code's built-in Test Coverage view). Override them in workbench.colorCustomizations:
{
"workbench.colorCustomizations": {
"charts.green": "#73c991",
"charts.yellow": "#CCA700",
"charts.red": "#f14c4c"
}
}
All color tokens are optional — your active VS Code theme provides the defaults automatically.