
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
solargraph_test_coverage
Advanced tools
Solargraph Plugin that provides a diagnostic reporter for unit-test coverage.
Currently there are four different diagnostics when viewing an app/unit file:
There's one diagnostic if you're viewing a spec file:
it
block is currently failing (rspec only for now)Add this line to your application's Gemfile:
gem 'solargraph_test_coverage', require: false
Then add this to your .solargraph.yml
config:
plugins:
- solargraph_test_coverage
reporters:
- test_coverage
- example_status
Additionally, a test_coverage
key can be added to .solargraph.yml
. The default values are shown below:
test_coverage:
preload_rails: true
test_framework: rspec # or minitest
coverage:
- line
- branch
- test_failing
- test_missing
- example_failing
exclude_paths:
- 'app/controller'
- 'concerns'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install solargraph_test_coverage
A note on testing framework:
Since both Minitest and RSpec are supported, neither are direct dependencies of this gem. Therefore, you have to have them installed separately either via your bundle or via gem install
.
With solargraph running and connected to your text editor, you should see diagnostic messages for line coverage, branch coverage, test file presence, and test status (if it's failing)
Bug reports and pull requests are welcome on GitHub at https://github.com/deepdivr/solargraph_test_coverage.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that solargraph_test_coverage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.