New Releases Lead to Better Ruby Testing

February 28th, 2007 by Pat Eyler

Your rating: None

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


Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer

Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.

Comment viewing options

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

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.

Amor's picture

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!!!

fel3232's picture

Youtubers

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

ruuby, keep it going, I am rulling 4 u

new thumbs daily's picture

Good article.

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

Good article.

Cheats Planet's picture

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...

NewSitesBlog's picture

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

Anonymous's picture

Yes, automated regression

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

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

Post new comment

Please note that comments may not appear immediately, so there is no need to repost your comment.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
  • Lines and paragraphs break automatically.

More information about formatting options

Newsletter

Each week Linux Journal editors will tell you what's hot in the world of Linux. You will receive late breaking news, technical tips and tricks, and links to in-depth stories featured on www.linuxjournal.com.
Sign up for our Email Newsletter

Tech Tip Videos

From the Magazine

December 2009, #188

If last month's Infrastrucuture issue was too "big" for you then try on this month's Embedded issue. Find out how to use Player for programming mobile robots, build a humidity controller for your root cellar, find out how to reduce the boot time of your embedded system, and if you're new to embedded systems find out the basics that go into one. You can also read about the Beagle Board, the Mesh Potato and a spate of other interestingly named items. And along with our regular columns don't miss our new monthly column: Economy Size Geek.


Read this issue