Thursday, January 2, 2014

Behavior-Driven development in C# with SpecFlow

Trying out a BDD framework in Visual Studio had been on my list of weekend projects for quite some time. I know of two frameworks for .NET: NSpec and SpecFlow. I was most interested in the latter, since that allows the specs to be written in plain text ( see cucumber ). This, I think, could be useful to verify the tests against the business or the analysts, involved in the development of the application.

Getting started with SpecFlow is really easy - check out: http://www.specflow.org/getting-started/.



Within 10 minutes I had my own adaptation of an example:


No I'll think where and how to apply this in my projects.

1 comment:

  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru Dot Net Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
    or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.

    ReplyDelete