Running Plain Text scenarios

May 29, 2009 at 2:05 AM

Hello,

Can somebody explain how to run plain text scenarios ?

I can't find any example on how to do that

Thanks,

Ernst

Coordinator
May 31, 2009 at 9:37 PM

Grab the latest source from the trunk and check the Bowling game example in the NBehave.Examples project.

To run your scenarios, run "go.bat", then use the command line to navigate to "Build\Debug\UnitTests". From there you can use nbehave-console.exe to run all scenarios like this:
..\NBehave\NBehave-Console.exe nbehave.examples.dll /sf:"Bowling game\specs\bowling score calculation\*.scenario"

with nant:
nant -buildfile:"Bowling Game\BowlingGame.nant.build"

with msbuild:
msbuild ".\Bowling Game\BowlingGame.msbuild"

/Morgan

Jun 2, 2009 at 2:18 AM

Is there someway to get TD.NET to run the scenarios/story specs?

 

~Lee

Coordinator
Jun 2, 2009 at 3:35 AM

Not yet Lee, its not implemented yet.

Feel free to send me a patch for that :)

Oct 19, 2009 at 2:35 PM

Hi.

I'm trying to use the palin text scenarios. And I also think that it would be very interesting if we can run the scenarios from within the ide.

My idea is to embed scenario files and load that with a textrunner from the run method of NBehaveStoryRunner class.

Any help on how I can debug this kind of change?

Thanks.

gc

 

Coordinator
Oct 20, 2009 at 5:17 PM

Write an example/spec/test for it. Execute it and verify the result.