Monday, November 9, 2009

GivWenZen and FitLibrary Part 2

Yesterday I showed an example of using GivWenZen with FitLibrary.  I was pleasantly surprised with how simple it was.  It seemed much easier than using FitNesse/SLiM alone.

Today I want to continue with the FitLibrary and show you a new feature that I really like, plain text specification / test.  Again, I was amazed at how easy it was to do.  To use plain text we can use the same Fixture we used yesterday.  And we simple change the test to look like the following:


- given i turn on the calculator
- and i have entered 50 into the calculator
- and i have entered 75 into the calculator 
- when i press add 
- then the total is 125

For the test you simple write the sentence and prefix it with a '- '. No special CSS needed to make the table go away. Very nice. It would be nice if the '- ' was not required. I would prefer an assumption that a line is a specification step and require a special character to indicate a comment. However, I do like the feature and it is a step in the right direction toward plain text.

No comments:

Post a Comment