Sha256: f457ef6d7fe1c4fbb12e86a910fe5866c08919e1903d64ac1ee438034f39c461
Contents?: true
Size: 1.42 KB
Versions: 3
Compression:
Stored size: 1.42 KB
Contents
# SolargraphTestCoverage Solargraph Plugin that provides a diagnostic reporter for unit-test coverage. Currently there are four different diagnostics: - Line is not covered - Branch is not covered (With a note if it's the 'THEN' or 'ELSE' branch) - Spec is failing (Error message will be on line 1) - Spec cannot be found (Error message will be on line 1) ## Installation Add this line to your application's Gemfile: ```ruby gem 'solargraph_test_coverage' ``` Then add this to your `.solargraph.yml` config: ```yaml plugins: - solargraph_test_coverage reporters: - test_coverage ``` Additionally, a `test_coverage` key can be added to `.solargraph.yml`. The default values are shown below: ```yaml test_coverage: preload_rails: true test_framework: rspec # or minitest coverage: - line - branch - test_failing - test_missing exclude_paths: - 'app/controller' ``` And then execute: $ bundle install Or install it yourself as: $ gem install solargraph_test_coverage ## Usage 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) ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/deepdivr/solargraph_test_coverage. ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
solargraph_test_coverage-0.2.3 | README.md |
solargraph_test_coverage-0.2.2 | README.md |
solargraph_test_coverage-0.2.1 | README.md |