Ruby Coverage
Sublime Text 2 plugin integrating simplecov analysis and highlighting for Ruby
Details
Installs
- Total 5K
- Win 2K
- Mac 2K
- Linux 1K
Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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.