New Releases Lead to Better Ruby Testing

February 28th, 2007 by Pat Eyler

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

hi

On April 17th, 2008 concon says:

Thanks for the suggestion…

__________________________

muhabbet | Yonja | Netlog

This release features better

On October 1st, 2007 Asian (not verified) says:

This release features better readability : through unified diff output of failing mutated tests and simple reporting at the end of heckle runs.

hi

On October 1st, 2007 oyun (not verified) says:

thanks like you

sidelines

On September 26th, 2007 Amor (not verified) says:

like some of your readers, the wait for an up and running ruby is what matters...we're watching you ruby!!!

Youtubers

On October 13th, 2007 fel3232 (not verified) says:

ruuby, keep it going, I am rulling 4 u

Good article.

On September 18th, 2007 new thumbs daily (not verified) says:

Good article.

Excellent Release

On September 2nd, 2007 Cheats Planet (not verified) says:

This release is rather helpful and the HTML report generation will certainly go a long way...

Great release

On October 15th, 2007 NewSitesBlog (not verified) says:

The HTML report new generation will most deffinately go down as a great one. Thanks

Yes, automated regression

On June 26th, 2007 Anonymous (not verified) says:

Yes, automated regression testing of this nature can be extremely helpful!

Featured Video

Shawn Powers has a message for hardware vendors. Listen up!

From the Magazine

July 2008, #171

Heard of the Web? If not, read on. This month we talk with Matt Mullenweg about WordPress. If you want to get your hands dirty in Web code, take a look at the rest of our feature articles on WebKit, Dojo and OpenLaszlo.

In the rest of the issue, you'll find articles on OpenID, RDFa and Quanta Plus. Kyle Rankin puts a new spin (as in "no" spin SSD) on hard drives and also tells you how to migrate to that new disk (spinning or not). Mick Bauer continues his series on customizing live CD's. And, James Gray gives us a feel for the state of Linux in the enterprise. After all that, you may need some TV time. If so, check out our review on how to make that digital TV tuner card work in your Linux box.

Read this issue