Jeremy D. Miller -- The Shade Tree Developer

Sponsors

The Lounge

Wicked Cool Jobs

Syndication

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
NSpec - BDD comes to the .Net world

I saw this this morning --> http://nspec.tigris.org/

If you haven't seen it before, think of Behavior Driven Development as a refined version of TDD.  Most of the writings on BDD I've seen so far are geared towards Ruby and other dynamic languages.  I honestly didn't think this was going to be possible in a static language.  I'm definitely going to give NSpec a spin soon.


Posted Tue, Jun 27 2006 9:13 AM by Jeremy D. Miller

[Advertisement]

Comments

Aaron wrote re: NSpec - BDD comes to the .Net world
on Tue, Jun 27 2006 12:34 PM
Does this (or any) BDD framework actually have any functional difference from NUnit (or your favorite unit testing framework), or is it simply a syntax change to make it "feel" more like you're writing specifications instead of tests?
Jeremy D. Miller wrote re: NSpec - BDD comes to the .Net world
on Tue, Jun 27 2006 2:19 PM
Aaron,

I don't know yet.  I've only read enough to be interested.  I think I'll get a chance to see some of it at No Fluff, Just Stuff in Austin soon.  I've been meaning to play with RSpec in Ruby to try it out, but haven't gotten around to it.

Jeremy
Tony wrote re: NSpec - BDD comes to the .Net world
on Tue, Jun 27 2006 2:27 PM
Aaron beat me to the punch, but I was wondering the same thing.  

When I first heard about BDD at behaviour-driven.org, BDD seemed to be much more.  This might be a result of the imaturity of the NSpec project, but the example that they present seems to be a dolled up unit test (or it could be a result of my ignorance on BDD).

Jeremy, I'd love to read more about it if you do get a chance to get some info at No Fluff, Just Stuff.

Also, I didn't know about RSpec as I'm just now starting to learn Ruby.  I'll have to take a look at that as well.
Sachin Rao wrote re: NSpec - BDD comes to the .Net world
on Tue, Jun 27 2006 4:50 PM
Jeremy,

I haven't read much about BDD, so I must admit I'm unsure of its purpose.  Having said that, I always thought a Design By Contract framework in conjunction with TDD would be a great way of providing specifications and defining behaviour:

http://research.microsoft.com/specsharp/

I'm kinda hoping this comes out in the mainstream soon.

Sachin
Jeremy D. Miller wrote re: NSpec - BDD comes to the .Net world
on Tue, Jun 27 2006 5:02 PM
I've never thought that DBC goes far enough, but I've always wished MS was add DBC to .Net through declarative attributes.  I hate the way copious amounts of defensive coding makes code harder to read.
Sachin Rao wrote re: NSpec - BDD comes to the .Net world
on Tue, Jun 27 2006 5:28 PM
Funny, 'cuz I've always thought too many attributes make code harder to read.  :)

I'm not sure if extending method signatures qualifies as defensive coding.  Spec# or any such product would be, after all, just a language extension.

Anyways, would be interesting to know how NSpec complements an existing unit testing framework.
Joshua Flanagan wrote re: NSpec - BDD comes to the .Net world
on Tue, Jun 27 2006 11:11 PM
It is my impression that it IS just a syntax change from NUnit, but that should be no reason to dismiss it. I think they make a compelling argument in the short introduction on the main page (bullet #2 really hit home). Something to keep an eye on...
Greg wrote re: NSpec - BDD comes to the .Net world
on Sun, Jul 2 2006 3:39 PM
I have used spec# on a few apps already. Wonderful does not begin to describe it.

Garth wrote re: NSpec - BDD comes to the .Net world
on Wed, Jul 11 2007 5:13 AM

You should check out rbehave dannorth.net/.../introducing-rbehave, this is I think how BDD should be implemented and Agile Joe has been trying to port it over to .NET take a look at his recent post www.lostechies.com/.../introducing-nunit-behave-or-insert-what-ever-other-catchy-name.aspx

OpenSource Connections » Blog Archive » Ramping Up .Net For BDD and Unit Testing With Gallio, NBehave, and Moq wrote OpenSource Connections » Blog Archive » Ramping Up .Net For BDD and Unit Testing With Gallio, NBehave, and Moq
on Wed, Mar 19 2008 11:44 PM

Pingback from  OpenSource Connections  » Blog Archive   » Ramping Up .Net For BDD and Unit Testing With Gallio, NBehave, and Moq

neil martin wrote re: NSpec - BDD comes to the .Net world
on Thu, Jul 17 2008 8:01 AM

Intent is so importent , your code is driven form your intent these frameworks help you align you rin tent and hence your code with the storys and acceptance criteria.

robert wrote re: NSpec - BDD comes to the .Net world
on Thu, Apr 23 2009 3:49 AM

NSpec just created extension methods to provide better syntax for validation but real BDD comes with ArtSpec

Buy soma cheap. wrote Soma buy soma cheap soma soma online.
on Tue, Jun 16 2009 3:27 AM

Buy domain onlinevcvpl soma.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Devlicio.us