Ruby Coverage
Sublime Text 2 plugin integrating simplecov analysis and highlighting for Ruby
Details
Installs
- Total 5K
- Win 2K
- Mac 2K
- Linux 1K
Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
SublimeRubyCoverage
A plugin for Sublime Text 2 that can highlight lines of Ruby lacking test coverage.
Installation
You will need to setup simplecov-sublime-ruby-coverage in your project.
Set up Sublime Package Control if you don't have it yet.
Go to Tools > Command Palette.
Type Package Control: Install Package
and hit enter.
Type Ruby Coverage
and hit enter.
Usage
To set color of the marks, add the following to your color scheme settings array:
<dict>
<key>name</key>
<string>coverage.uncovered</string>
<key>scope</key>
<string>coverage.uncovered</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ffff33</string>
</dict>
</dict>
Ignoring Files
Add a .covignore file to your project root in order to add custom ignores.
Highlighting lines missing coverage
When you open a .rb file, SublimeRubyCoverage tries to find coverage information and highlight all uncovered lines with an outline.
It does this by looking in all parent directories
until it finds a coverage/sublime-ruby-coverage
directory as produced by simplecov-sublime-ruby-coverage.
The coverage file is expected to have as many lines as the source file, with each line containing a 1 if the line is covered or a 0 if it is not.
You can force a reload of the coverage information
and redraw of the outlines
by running the show_ruby_coverage
command,
bound to super+shift+c by default.