Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting started with BDD and nSpec

Tags:

c#

bdd

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 beginning tutorials on using nSpec?

like image 457
Brian McCord Avatar asked Mar 03 '26 21:03

Brian McCord


2 Answers

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
like image 104
Amir Avatar answered Mar 05 '26 10:03

Amir


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)

like image 21
Krissana Rattanapat Avatar answered Mar 05 '26 11:03

Krissana Rattanapat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!