Sublime Text 2 plugin integrating simplecov analysis and highlighting for Ruby
- Total 5K
- Win 2K
- Mac 2K
- Linux 1K
|Oct 28||Oct 27||Oct 26||Oct 25||Oct 24||Oct 23||Oct 22||Oct 21||Oct 20||Oct 19||Oct 18||Oct 17||Oct 16||Oct 15||Oct 14||Oct 13||Oct 12||Oct 11||Oct 10||Oct 9||Oct 8||Oct 7||Oct 6||Oct 5||Oct 4||Oct 3||Oct 2||Oct 1||Sep 30||Sep 29||Sep 28||Sep 27||Sep 26||Sep 25||Sep 24||Sep 23||Sep 22||Sep 21||Sep 20||Sep 19||Sep 18||Sep 17||Sep 16||Sep 15||Sep 14|
A plugin for Sublime Text 2 that can highlight lines of Ruby lacking test coverage.
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.
Package Control: Install Package and hit enter.
Ruby Coverage and hit enter.
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>
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
bound to super+shift+c by default.