Skip to content
A battle hardened testing framework for C# that's heavily inspired by Mocha and RSpec.
C# Visual Basic .NET Ruby Other
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.
.nuget pushed to nuget Sep 26, 2016
NUnit.Runners.2.6.4 trying to get this project to work on OSX, so I never have to boot in… Oct 10, 2015
RubyInstallationFiles Add support to async/await in client code Oct 1, 2015
examples chore(examples): upgrade to NSpec 3.1.0 Jun 12, 2017
libs moving some nunit bits to nuget others to libs/nunit.runners because … Jun 1, 2012
packages updated website Jun 23, 2012
scripts chore(package): cleanup NSpec & dotnet-test-nspec packages Jan 31, 2017
sln chore(solution): add repository top level files Jun 12, 2017
.ackrc chore(solution): update nuspec, rakefile, ackrc to .NET Core solution Nov 7, 2016
.gitattributes chore(github): exclude chunky TiddlyWiki template from stats Mar 5, 2017
.gitignore chore(repository): update ignore list from standard source Sep 24, 2016 docs(breaking): fix 'Frameowrk' typo Aug 3, 2017 chore(package): update URLs after moving to organization Feb 3, 2017
Gemfile added pry to gemfile, regened website Apr 15, 2013 docs(readme): reword library description Mar 7, 2017
Rakefile chore(deps): backport to .NET 4.5.1 Feb 17, 2017
appveyor.yml chore(appveyor): rename NuGet artifact May 11, 2017
icon.png added icon, started class level before Mar 23, 2011
license.txt adding MIT license Mar 7, 2011


NuGet Version and Downloads count Build status

NSpec is a BDD (Behavior Driven Development) testing framework of the xSpec (Context/Specification) flavor for .NET. NSpec is intended to drive development by specifying behavior within a declared context or scenario. NSpec is heavily inspired by RSpec and Mocha.


See for instructions on getting started and documentation.


See under examples/:

  • DotNetTestSample
    Sample solution showing how to setup a NSpec test project targeting .NET Core

  • NetFrameworkSample
    Sample solution showing how to setup a NSpec test project targeting .NET Framework

Also, there are a couple of projects under sln/test/Samples/ path, SampleSpecs and SampleSpecsFocus. Those are part of main NSpec solution, needed when testing NSpec itself, and contain several mixed examples of NSpec test classes.

Breaking changes

To check for potential breaking changes, see


See contributing doc page.




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

You can’t perform that action at this time.