Questions tagged [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.

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. Visit http://nspec.org for more information.

19 questions
7
votes
5 answers

What BDD frameworks are popular in .net?

I've recently been getting into BDD and think it holds great promise as a way to get a stakeholder's voice back in the apps we, as developers, create for them. What's your favorite BDD framework and why?
Lee Warner
  • 2,543
  • 4
  • 30
  • 45
6
votes
1 answer

How do I set up NCrunch to run nspec tests

I'm struggling to set up NCrunch to run my nspec tests automatically. On the ncrunch forums it says this functionality has not been implemented yet, but then MattFlo says he prefers using NCrunch, so I'm pretty sure it can be made to work. Help…
richardwhatever
  • 4,564
  • 5
  • 23
  • 26
5
votes
1 answer

FluentAssertions: string does not contain a definition for ShouldBeEquivalentTo

I am trying to use Nspec. I have followed these instructions: http://nspec.org/ Create a class library project Nuget: Install-Package nspec Nuget: Install-Package FluentAssertions Create a class file and paste the following code: using…
w0051977
  • 15,099
  • 32
  • 152
  • 329
3
votes
1 answer

How do I configure Visual Studio Online to run a custom unit test framework?

I'm trying to make the Visual Studio Online build service run my nSpec tests. I've downloaded the nSpec test adapter (which works fine locally), unzipped the DLLs and uploaded those to a separate TFS repository. I've configured the hosted build…
EMB
  • 171
  • 1
  • 7
3
votes
1 answer

How to run nSpec test in Team City?

I want to run nSpec in Team City 7.X (or later). I have seen that Team City has support for mSpec framework but no for nSpec. And the option XML Report Processing seems to not support nSpec. Is it possible?
Setar
  • 261
  • 3
  • 10
3
votes
2 answers

ASP.NET equivalent of rspec or cucumber for behavior driven testing

I am currently working on a ASP.NET project and I was wondering if there is an equivalent behavioral testing framework for ASP.NET, something similar to rspec and cucumber in Rails.
Hazem Salama
  • 14,891
  • 5
  • 27
  • 31
3
votes
4 answers

How to debug in Visual Studio with NSpec

how do I debug in visual studio with NSpec? I've resharper installed I need to step into my test code.
Mantisimo
  • 4,203
  • 5
  • 37
  • 55
2
votes
3 answers

How to capture Exception in nSpec

In my 'act' I want to capture an exception so that I can do multiple tests on the exception data. Examples on the web show how to capture and compare the type/message within a test (or 'It' block) but not how to capture the exception as an 'act' in…
Bitfiddler
  • 3,942
  • 7
  • 36
  • 51
1
vote
1 answer

Does Nspec have something like Rspec's should_receive?

I am writing an Nspec to test some file manipulation. I want to be able to intercept the call just before renaming the file, and I thought something similar to Rspec's should_receive should do. However I can't find anything like that in the Nspec…
lulalala
  • 17,572
  • 15
  • 110
  • 169
1
vote
1 answer

MightyMoose - is there a way to set this up with NSpec?

I am using NSpec for my BDD tests and would like to integrate MightyMoose into our project. Can this be done? I cannot find any instructions on how to configure this.
Pacificoder
  • 1,581
  • 4
  • 18
  • 32
1
vote
1 answer

Can SpecWatchr integrate with dotCover?

Can the NSpec SpecWatchr tool integrate with dotCover to analyze code coverage by tests?
aknuds1
  • 65,625
  • 67
  • 195
  • 317
1
vote
1 answer

Reuse NSpec specification in outer context

I am studing NSpec framework. Here is my example. I've written spec for a simple HttpRequester class: using Moq; using NSpec; namespace FooBrowser.UnitTests.BDD { class HttpRequester_specification : nspec { private HttpRequester…
gerichhome
  • 1,872
  • 2
  • 15
  • 21
1
vote
1 answer

Can nspec run parallel tests?

I am looking for an Rspec-style tool for C# and have found Nspec. I will be using it for Webdriver tests via Saucelabds so the ability to run tests in parallel is a key consideration. Can this be done in Nspec? Currently I use MBunit and this has…
Robbie Wareham
  • 3,380
  • 1
  • 20
  • 38
1
vote
0 answers

NUnit TestCaseSource modification

I have some code that looks like this [Test, TestCaseSource("NspecRunner")] public void TextContext (example thing) { //does testing like things using thing while( othread.threadState == running && currentTestCount == StaticList.count) …
DrSammyD
  • 880
  • 12
  • 32
1
vote
1 answer

Reusing NSpec specifications

I've started with NSpec recently and now I'm not sure how to scale this. What is the best way to reuse specifications (it["something"] = () => {};)? Let's say I have an interface IMyService and 2 classes that implement it: Service1 and Service2. Now…
Pedro
  • 1,134
  • 11
  • 26
1
2