Getting started with BDD and nSpec
In a previous question found here, I asked a question about BDD and SpecFlow. The best answer was to use nSpec instead of SpecFlow.
I found nSpec, but I am having trouble finding tutorials on how to use it with C#. My google mojo isn't working for this topic.
Apart from the small instructional on the nSpec github site on how to install nSpec, does anyone have any links to good be开发者_如何学运维ginning tutorials on using nSpec?
I'm not sure if we are talking about the same framework (whether you meant nStep or NSpec). But here is some information on NSpec.
NSpec Project Site
There is an NSpec Project Site that has a good set of features showcased to help you get started.
Sample NSpec Usage
On github, the NSpec Samples Project will give you greater insight into the framework.
Additional Resources
It's important to be aware that there are two flavors of BDD. The following link explains the two different forms, their pros and cons, and how you can benefit from each:
- What is the most mature BDD Framework for .NET?
- NSpec Project Site
- Continuous Testing
- Introduction to BDD and Mocking
- BDD using NUnit and Moq
You can see the Cuke4nuke (nStep's cousin) screen cast here: http://www.richardlawrence.info/2009/12/03/screencast-testing-web-applications-in-net-with-cuke4nuke-and-watin/
I think they're quite similar, so watching the screencast should get you the basic idea.
(You can also checkout Cuke4nuke's wiki)
If you have trouble in getting started, why don't you switch to a framework that has a tutorial available? I have written a complete run-through for my own BDD engine, called Aubergine; you can see it here: http://www.corebvba.be/blog/post/Getting-started-quickly-with-BDD-in-Net.aspx
精彩评论