Running a NBehave test from the console

Nov 3, 2008 at 9:35 AM
I want to run all my NBehave tests (specs) from the console.  How do I do this?  I created a go.bat file that looks something like this...

C:\Users\laura\Documents\nant\nant-0.86-beta1-bin\nant-0.86-beta1\bin\NAnt.exe -buildfile:NBehave.build %*
my project executable is located at 
C:\Users\laura\Documents\develop\TestNBehave\TestNBehave\bin\Debug

Do I need to use the NBehave.Bulid Cand change it??  I'm very new to NBehave and build scripts so if someone can help me out that would be amazing.

Thanks!

Laura
Coordinator
Nov 5, 2008 at 8:20 PM
The NBehave.build file is to build NBehave itself, simply run "go.bat". Then NBehave is built and the output is found in build\debug\nbehave
When you have created some stories you can run them from the console with "nbehave-console.exe TheDllWithStories.dll /storyOutput=stories.txt"
run "nbehave-console.exe" to se more options.

/Morgan