Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 would be greatly appreciated!

like image 861
richardwhatever Avatar asked Jun 20 '12 10:06

richardwhatever


1 Answers

We are working on getting NCrunch fully supported.

For now you can use the DebuggerShim (it's a cs file included with NSpec) as a shim to run it via NCrunch. The DebuggerShim is pretty much an NUnit test that runs NSpec tests.

You may want to take a look at specwatchr. Matt likes to use NCruch, but I find that it's to eager to run my tests. I have to consciously STOP typing to give NCrunch a chance to run my tests...I'd rather just hit the save button and have a background process run my tests for me (ie specwatchr). Hope that helps.

Amir (Hacker on NSpec)

NUnit extension for NSpec: https://github.com/ddaysoftware/NSpec4NUnit

like image 104
Amir Avatar answered Oct 27 '22 10:10

Amir