Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
NSpec is a BDD (Behavior Driven Development) framework for .NET of the xSpec (Context/Specification) flavor. NSpec is intended to drive development by specifying behavior within a declared context. NSpec is heavily inspired by RSpec and built upon the NUnit assertion library.
C# Ruby

This branch is even with mattflo:nonunit

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.nuget
NSpec.GallioAdapter
NSpec
NSpecRunner
NSpecSpecs
SampleSpecs
TDNETRunner
_includes
libs
.gitignore
Gemfile
NSpec.crunchsolution.local.xml
NSpec.sln
NSpec.sln.DotSettings
README.md
Rakefile
SharedAssemblyInfo.cs
after.txt
before.txt
dotnet.watchr.rb
green.png
icon.png
license.txt
nspec.nuspec
nspec.watchr
red.png
watcher_dot_net.rb

README.md

NSpec

NSpec is a BDD framework for .NET of the xSpec (context/specification) flavor. NSpec is intended to be used to drive development through specifying behavior at the unit level. NSpec is heavily inspired by RSpec and built upon the NUnit assertion library.

NSpec is written by Matt Florence and Amir Rajan. It's shaped and benefited by hard work from our contributors

Contributing

The Nspec test suite is written in NUnit. The test project is NSpecSpecs. Not to be confused with SampleSpecs which hosts numerous tests written in NSpec, some of which are intended to fail.

To run the NSpec test suite, you can use ncrunch or Specwatchr which as support for NUnit 2.5.9. For Specwatchr, the dotnet.watchr.rb file contains a hard reference to the 2.5.9 binary which may need to be updated to your installed version. To do so, locate the following line:

NUnitRunner.nunit_path = 'C:\program files (x86)\nunit 2.5.9\bin\net-2.0\nunit-console-x86.exe'

Other wise you can get started by the running the following commands:

bundle install              (installs all required gems)
rake                        (builds and runs unit tests)
rake build                  (builds solution)
rake spec                   (runs NSpecSpecs test suite with NUnit)
rake samples [spec_name]    (runs spec_name in SampleSpecs with NSpecRunner)

If you have Resharper 6.1 there is a team-shared settings file in the repository. Please use the settings to format any new code you write.

Fork the project, make your changes, and then send a Pull Request.

Something went wrong with that request. Please try again.