This plugin allows the visualization of the coverage of your ruby files generated by Simplecov.
- Enable/disable the coverage view by the command
Toggle Simplecov coverage visualization
This extension contributes the following settings:
simplecov-vscode.path: Path to your.resultset.jsonfile relative to the workspace. By defaultcoverage/.resultset.json- add the redefinable colors
coverage.notCovered,coverage.covered,coverage.ignoredto the theme.
This extension expects the coverage to be ran under the RSpec label.
If not using Rspec, setup can be done as such (quick and dirty)
# test_helper.rb
SimpleCov.command_name 'MY:PROJECT'# Run this after the coverage report
cd coverage
sed -i 's/MY:PROJECT/RSpec/' .resultset.json
# Eventually rewrite the local paths if developping inside a container
cd coverage
sed -i 's:/docker/path/app/:/home/user/project/app/:g' .resultset.json