In my last post, I mentioned I was going to use BDD and DDD to build a silverlight application. Well it took me a couple hours to settle on which BDD framework to use.
I started by trying out NBehave, but found it very verbose. I do not enjoy re-writing my stories in my tests. Stories should be defined, yes, but in a separate document. There is no point to repeating them again in the code.
Thus began a search for which framework I should try out. First, you have different unit testing frameworks, on top of which the BDD ones are built: nUnit, xUnit and MbUnit. Then you have a choice between xUnit BDD extensions, SpecUnit.Net, NBehave, StoryQ and mSpec.
Well, that wasn’t easy. In the end, I decided to go with SpecUnit, just because it was Scott Bellware’s project and he is quite vocal about what the others do wrong (see comments) and I’d like to see what he’s got to teach me with his framework. Yes, mSpec was greatly influenced by SpecUnit, but it is currently under development, so I’ll wait a bit before I try it. I guess the main point is that writing a few tests in SpecUnit was enjoyable, which is important if you’re going to be writing thousands of tests, I guess.

0 comments:
Post a Comment