www.fitnesse.org),... " />
 

The Finesse of FitNesse



Email    print   
September 15, 2006 —  (Page 1 of 3)
Last time I heard Robert Martin talk, he was waxing poetic about a testing framework called FitNesse (www.fitnesse.org), which I finally got around to checking out this week. FitNesse is an interesting amalgam of a test-suite driver and a wiki. You define your tests as tables, using standard wiki notation (vertical bars to separate columns, for example) embedded into a standard Web page. If you don't speak wiki, you can cut and paste the tables from a spreadsheet. You can also put normal English on the page, so you can easily write about what the test is actually testing, provide links to other tests and so forth. The page also includes a "Test" button, which when clicked, runs the tests and colors various rows in the tables to indicate where the test succeeded or failed.

These tables are front ends for methods in test classes (called “fixtures”) that you write, and different fixtures handle the tables in different ways.

For example, the “ColumnFixture” treats the columns as either inputs or expected outputs of methods in the fixture class (which you write). The first row of the table identifies the actual fixture class to instantiate to run the test, the second row contains either a method name (which represents a desired return value) or argument names. You specify sample arguments in the argument columns, and the expected return value in the column labeled with the test-method name. When you push the Test button, the system calls the method as many times as there are rows, passing it the arguments you specified and checking the expected return value against the actual return value. If they don’t match, the cell is colored red; otherwise it’s green.

(That’s one thing that’s both good and bad about FitNesse. In a test-driven-development environment where you, the programmer, are running test suites manually every few minutes, this sort of visual feedback is great. In a large fully automated test battery that’s running unattended overnight, I’d rather have just a list of failed tests than pages of visual candy.)




Pages 1 2 3 


Share this link: http://sdt.bz/29545
 
Most Read Latest News Blog Resources

Add comment


Name*
Email*  
Country     


  • Comment
Loading




close
NEXT ARTICLE

 
 
 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 

Download Current Issue
FEBRUARY 2012 PDF ISSUE

Need Back Issues?
DOWNLOAD HERE

Want to subscribe?


 
blogs tab
Are you at risk for burnout?
Burnout is a severe problem and it can strike at any time. Here's how to tell if you are nearing the edge.
02/09/2012 02:16 PM EST

Agility, mom, and apple pie
If we're to evaluate the state-of-the-art in software development, we should start with the values espoused in the Agile Manifesto.
02/07/2012 11:57 AM EST

RIM woos developers with free tablet
How do you get more apps ported to the BlackBerry PlayBook? By giving every developer a free tablet, of course!
02/04/2012 01:57 PM EST

GitHire: Use Headhunters to Find Your Perfect Programmer
Are you a hiring manager tired of scouring the job boards? Check out this new service that will find 5 people interested in your jobs.
02/03/2012 12:17 PM EST

Facebook claims hacker cred
Facebook's SEC S-1 filing form includes a short essay on the Hacker Way by Mark Zuckerberg himself.
02/02/2012 08:26 AM EST

Ryan Dahl steps down
Ryan Dahl, creator of Node.js, steps back from his position as gatekeeper for the project.
02/01/2012 04:58 PM EST

 
Events calendar tab
2/13/2012 to 2/16/2012
Santa Clara
TechWeb

2/26/2012 to 2/29/2012
San Francisco
BZ Media

2/27/2012 to 3/2/2012
San Francisco
RSA

3/4/2012 to 3/7/2012
Las Vegas
IBM Tivoli

3/5/2012 to 3/9/2012
San Francisco
TechWeb