The last week or so has seen new releases of two of my favorite additions to testing (or speccing if you're of the BDD persuasion) in the Ruby world. zenspider and Kevin Clark have released a new version of Heckle on the 20th, and Mauricio Fernandez released a new version of rcov this morning (the 21st).
heckle is a tool that 'tests your tests', walking the AST that Ruby executes for the code under test and transforming (or mutating) it to ensure that your tests still fail if an if is changed to an unless, or if inputs to methods being tested are changed. It provides an informal measure of branch coverage for your test suite. This release features better readability (through unified diff output of failing mutated tests and simple reporting at the end of heckle runs. Kevin tells me they're working on HTML report generation as well, which I think will be a great addition.
rcov is a more traditional tool, it measures line coverage of your test suite. This release includes: an annotation mode (--annotate), which reprints the original source with coverage annotations; enhanced emacs support (including jumping to uncovered code); and a number of bugfixes including a segfault when running under rspec.
It's been a good week for Ruby testers. Hopefully March will continue the trend.
-- -pate http://on-ruby.blogspot.com
- Readers' Choice Awards 2013
- IBM Will Minimize Impact of Future Disasters
- December 2013 Issue of Linux Journal: Readers' Choice
- Sublime Text: One Editor to Rule Them All?
- RSS Feeds
- Raspberry Pi: the Perfect Home Server
- New Products
- Linux Systems Administrator
- Tech Tip: Really Simple HTTP Server with Python
- Senior Perl Developer
- yes it's Jupiter Broadcasting
8 min 17 sec ago
- nice to see PClinuxOS finally
2 hours 41 min ago
- Personally, I am no longer a
3 hours 38 min ago
- Reply to comment | Linux Journal
17 hours 3 min ago
- It's Jupiter
18 hours 3 min ago
- GIMP is certainly a graphic
19 hours 5 min ago
- Thanks For Your Sharing
23 hours 50 min ago
- Studying linux, and looking
1 day 3 hours ago
- voting for Best Linux Distribution
1 day 11 hours ago
- tizen vs android
1 day 15 hours ago