Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anykeyh/simplecov-vscode
Simplecov integration into VSCode
https://github.com/anykeyh/simplecov-vscode
Last synced: 30 days ago
JSON representation
Simplecov integration into VSCode
- Host: GitHub
- URL: https://github.com/anykeyh/simplecov-vscode
- Owner: anykeyh
- License: mit
- Created: 2021-03-05T18:32:38.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-08T14:03:19.000Z (almost 2 years ago)
- Last Synced: 2024-10-25T01:31:42.468Z (3 months ago)
- Language: HTML
- Size: 258 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# simplecov-vscode README
This plugin allows the visualization of the coverage of your ruby files generated by Simplecov.
## Features
![Example](https://raw.githubusercontent.com/anykeyh/simplecov-vscode/main/assets/example.png)
## Extension Settings
- 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.json` file relative to the workspace. By default `coverage/.resultset.json`
* add the redefinable colors `coverage.notCovered`, `coverage.covered`, `coverage.ignored` to the theme.## Requirements
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)
```ruby
# test_helper.rb
SimpleCov.command_name 'MY:PROJECT'
``````bash
# 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
```