I am trying to decide if I should use Cuke4Nuke or SpecFlow. What are the pro/cons of each? Opinions on which is better and why.
Thanks!
I understand from Richard that he intends to discontinue Cuke4Nuke and is supporting moving some of the Cuk4Nuke features into SpecFlow. So the clear answer now is SpecFlow.
I started with Cuke4Nuke but have since defected to SpecFlow (sorry Richard ;-)
The main reasons for me to make that transition were:
There are some issues with Specflow/things I like better in the Cucumber/Cuke4Nuke world:
All in all both have potential to improve the way we write software.
Another biased response: StorEvil eats all other .NET BDD tools.
Advantages: StorEvil has its own command-line runner, has nice reporting (using the Spark view engine), and has the best plaintext->C# translation and execution engine.
Also, it has 100% more Evil than any other solution.
Disadvantages: StorEvil does not fully support other human languages (except English). StorEvil's Visual Studio integration is not yet as nice as the other tools. StorEvil will drink all the beer in the fridge if you don't keep an eye on it.
jbandi gives a good summary. I answer the question in much the same way (with the opposite disclaimer for bias, of course).
The goal for Cuke4Nuke is full Cucumber compatibility in .NET while duplicating as little Cucumber code as possible. Therefore, some of the trade-offs you highlighted—e.g. the Ruby dependency—are inherent to the tool. Others, like bugs in language and formatter support and limited debugging support, are temporary issues and will go away with future versions.
I've run into a few issues where Cuke4Nuke doesn't work quite like Cucumber. But as I work primarily in English, I don't see the language-related issues in my normal work. I'd welcome steps to reproduce any of these issues so I can fix them. (Please post to them the Cuke4Nuke issues list, not here.)
Another heavily biased opinion: Try StoryQ :)
StoryQ tests are actually code, so you get much better refactoring / IDE support, and it embeds within your existing unit test runner, so CI is a breeze.
It's probably a matter of preference whether you'd rather check in plain text features or compilable code. But for us we found that it was really nice to be able to rename narrative methods and have all the stories update themselves.
There is actually a GUI provided that will convert plain text scenarios into StoryQ code for you, if you've already got an investment in plaintext scenarios or if you'd like to give the keyboard to your business people. It's even got a simple form of intellisense!
Give it a go if you want an ultra-lightweight entry point into BDD :)
(I might be biased because I am involved with SpecFlow, but here my thoughts...)
Cuke4Nuke is very close to Cucumber. This promises a lot of advantages:
However this comes also with some potential disadvantages:
SpecFlow is a separate project from Cucumber. It tries to be as close to Cucumber as possible, but there are and will be gaps. There are plans to use the same parser as Cucumber, to improve compatibility on the language level.
SpecFlow tries to offer the following advantages:
As disadvantages of SpecFlow I see currently: