Visualize your PHPUnit code coverage directly in your editor. This extension parses clover.xml reports to highlight covered and uncovered lines, providing instant feedback on your test results.
Features
Live Visualization: Covered lines are highlighted in green, while uncovered lines are highlighted in red.
Automatic Refresh: Automatically updates the coverage highlights when the clover.xml report file changes.
Support for Clover XML: Compatible with the standard Clover XML report format generated by PHPUnit.
Manual Control: Refresh coverage data at any time with a simple command.
How to use
Generate a Clover XML coverage report with PHPUnit:
phpunit --coverage-clover clover.xml
Open a PHP file in VS Code.
The extension will automatically look for a clover.xml file in your workspace and apply the decorations.
If you need to manually refresh, use the command PHPUnit: Show Coverage from the Command Palette (Cmd+Shift+P / Ctrl+Shift+P).
Extension Settings
This extension currently does not contribute any settings.
Known Issues
The extension expects the clover.xml file to be present in the workspace.
Path mapping between the report and the workspace might need adjustment if running tests in Docker/VMs.
Release Notes
0.0.1
Initial release with basic Clover XML parsing and line highlighting.