| Author |
Fit testing framework
|
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
|
|
Is anyone out there into the Fit Testing Framework? I looked at it a while ago and was overwhelmed by the fixtures. But today I downloaded some code and looked into it further and it's pretty cool. I was able to integrate it into my own Wiki with this much code: Wondered if anybody was using fit or Fitnesse (currently down?) and could share advice about building fixtures. Thanks! [ November 17, 2003: Message edited by: Stan James ]
|
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
|
 |
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
|
|
I have played a little bit with FitNesse - see http://bloodball.sf.net/ What do you want to discuss?
|
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
|
 |
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
|
|
Have you built any multi-phase tests like the Music examples on fit.c2.com? They left the results of one fixture in a public static var and used it in the next fixture, which seemed a little tacky. We could at least use ThreadLocal to avoid collisions between users. In much the same style, I'm thinking about a first fixture that can do a variety of database queries (all yielding a common set of columns) and a second one that will assert various things about the resultset. Does that sound reasonable?
|
 |
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
|
|
Originally posted by Stan James: Have you built any multi-phase tests like the Music examples on fit.c2.com? They left the results of one fixture in a public static var and used it in the next fixture, which seemed a little tacky. We could at least use ThreadLocal to avoid collisions between users.
Yes - I think all my tests look like that - see TestAbortTackle for an example. You are right that using a static variable feels wrong - there is some discussion of the topic at the fit-dev list under the subject "saving state between fixtures".
In much the same style, I'm thinking about a first fixture that can do a variety of database queries (all yielding a common set of columns) and a second one that will assert various things about the resultset. Does that sound reasonable?
Yes, it does. It's a common pattern, currently known under a bunch of names - for example Build Operate Check
|
 |
 |
|
|
subject: Fit testing framework
|
|
|