Apr 19
Eric.Net, Development Asp.Net Mvc, MSpec, Nehemiah Project
Summary
In this post we’ll finish converting the auto-generated tests to MSpec specification.
Automate Running MSpec

If you wish to automate the running of the MSpec tool, open the properties to the Nehemiah.Specs project. Add the line below to the “Post-build event command line:” field. Now when Nehemiah.Specs builds successfully, MSpec will run automatically.
C:\_CodeVault\MSpec\mspec.exe $(TargetName)$(TargetExt) –html “$(ProjectDir)Report.html” More
Apr 15
Eric.Net, Development Asp.Net Mvc, BDD, MSpec, Project Nehemiah
In our last installment we converted the default tests to specifications for the Home and Account controllers. In this article we will be adding some meat to those specifications.
There are several good articles on the net about writing your specs. I stumbled across a couple more while preparing for this article. A reference list of all articles used in this post can be found at the end of the article.
There’s no need for me to repeat one of the best articles now. So go here, http://blog.wekeroad.com/2009/09/21/make-bdd-your-bff-2, and read this great post by Rob Conery.
The second article to read is http://telldontask.wordpress.com/2009/11/19/bdd-with-mspec-and-rhino-auto-mocks-part-2/.
We’ll combine what we learn in these two articles to write our specs. More
Apr 12
Eric.Net, Development Asp.Net Mvc, BDD, MSpec, Nehemiah Project, TD.Net, TeamCity
This post will cover installing TestDriven.Net (TD.Net), NUnit, and Machine.Specifications (MSpec). There are plenty of resources on the internet for installing all of these applications. I don’t want to duplicate the content of those posts, but I am including this post for completeness.
If you read any of the Behavior Driven Development posts on the net you’ll read where the tests should be written first. Since the MVC2 project auto-generates the code with a handful of tests, we’ll convert them to MSPec specificatoins now so we don’t get behind on writing our spec.
If you have been following this series, you’ll wonder if you missed any steps after installing these three applications. The install process is so simple and straight forward there is no need for any screen shots. More
Recent Comments