The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Unit Test Sadism 101 (Heckle 1.1.0 released)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ryan Davis

Posts: 651
Nickname: zenspider
Registered: Oct, 2004

Ryan Davis is a ruby nerd.
Unit Test Sadism 101 (Heckle 1.1.0 released) Posted: Dec 19, 2006 8:59 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Ryan Davis.
Original Post: Unit Test Sadism 101 (Heckle 1.1.0 released)
Feed Title: Polishing Ruby
Feed URL: http://blog.zenspider.com/index.rdf
Feed Description: Musings on Ruby and the Ruby Community...
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Ryan Davis
Latest Posts From Polishing Ruby

Advertisement

Heckle version 1.1.0 has been released!

http://www.rubyforge.org/projects/seattlerb by Ryan Davis and Kevin Clark

From http://glu.ttono.us/articles/2006/12/19/tormenting-your-tests-with-heckle :

Heckle is a mutation tester. It modifies your code and runs your tests to make sure they fail. The idea is that if code can be changed and your tests don’t notice, either that code isn’t being covered or it doesn’t do anything.

It’s a little weird, I know, but I like to think about it as pen-testing. It’s like hiring a white-hat hacker to try to break into your server and making sure you detect it. You learn the most by trying to break things and watching the outcome.

Anyway, Heckle was inspired by Jester, and Ryan Davis wrote a proof of concept at RubyConf. As he notes, I went a little nuts and much of the current implementation I rewrote that night or on the plane home.

Changes:

1.1.0 / 2006-12-19

  • 12 major enhancements:
    • Able to roll back original method after processing.
    • Can mutate numeric literals.
    • Can mutate strings.
    • Can mutate a node at a time.
    • Can mutate if/unless
    • Decoupled from Test::Unit
    • Cleaner output
    • Can mutate true and false.
    • Can mutate while and until.
    • Can mutate regexes, ranges, symbols
    • Can run against entire classes
    • Command line options!

http://www.rubyforge.org/projects/seattlerb by Ryan Davis and Kevin Clark

Read: Unit Test Sadism 101 (Heckle 1.1.0 released)

Topic: Ruby: Use class methods to reduce duplication Previous Topic   Next Topic Topic: Ruby - Ruby on Rails Losing Steam

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use