Exploration Through ExampleExample-driven development, Agile testing, context-driven testing, Agile programming, Ruby, and other things of interest to Brian Marick
|
Thu, 22 Feb 2007Can business-facing tests make everyone happy? Fit has some problems:
Maybe I'm groping toward a solution. Here is a Fit table that talks about a data conversion that's driven by a configuration file:
That looks reasonably attractive. You'd be appalled if you knew how much time I spent on it. Here is the same test in a different format:
That's an OmniGraffle file. I think it required less fiddling to create. Updating seems to be easier. I think it would be more useful as documentation than the previous test would. What I've done behind the scenes is extend my existing Graffle parser to handle files like this. I still use the Fit engine behind the scenes, as you can see from the output:
Not so nice to read, but how many product directors really look at test output? Now the question is: how could this use JUnit as the test execution engine instead of Fit? Then the question after that is whether I could use a less obscure app than OmniGraffle to generate the tests. Anything that puts out XML should be roughly the same difficulty. |
|