Hi,

I think the problem in locating the scenario stems from the
configuration of the source directory + includes:  the directory should
not include the package, ie 'src' instead of 'src/com/mypackage', and
the includes should not include the directory:

<scenarioRunner 
  scenarioIncludes="com/mypackage/NetstatScenarios.java"
  scenarioExcludes="**/*Steps.java" 
  classLoaderInjected="false"
  skip="false" 
  ignoreFailure="true"
  batch="true" 
  scope="compile"
  sourceDirectory="src"
  testSourceDirectory="src/test/java" />

Also, if the the scenarios are located in the test directory you need to
specify scope="test".

Cheers

On 10/03/2010 07:19, Prasad Shindikar wrote:
> Hi,
> *
> I am trying to run jbehave using ANT. However, I get the following
> stack trace.
>
> Buildfile: jbehave.xml
> [scenarioRunner] No scenarios to run.
> [renderReports] Rendering reports in './target/jbehave-reports' using
> formats '[txt, html, xml]' and template properties '{defaultFormats=stats
> [renderReports] renderedDirectory=rendered}'
>
> Please find the attached build file that I am using.
>
> The text based scenario file, java scenario file and steps classes are
> all located under the same folder.
>
> Can you please guide me why the scenarios are not getting called from
> the build file ?
>
> *Regards,
>
> Prasad Shindikar
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>   

Reply via email to