Hi Nino,

Have you looked at this page: http://jbehave.org/software/plugins/maven/ ?
You didn't configure the executions of the jbehave plugin. You have to
attach the run-scenarios goal to a phase (usually integration-test) of the
build lifecycle.

<plugin>
  <groupId>org.jbehave</groupId>
  <artifactId>jbehave-maven-plugin</artifactId>
  <executions>
    <execution>
      <id>run-scenarios-found</id>
      <phase>integration-test</phase>
      <configuration>
        <scenarioIncludes>
          <scenarioInclude>**/*scenarios/*.java</scenarioInclude>
        </scenarioIncludes>
        <scenarioExcludes>
          <scenarioExclude>**/*Steps.java</scenarioExclude>
        </scenarioExcludes>
      </configuration>
      <goals>
        <goal>run-scenarios</goal>
      </goals>
    </execution>
</executions>
</plugin>

regards  Cyril.

On Fri, Oct 31, 2008 at 12:11 PM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> Hi Guys
>
> Im having some trouble getting my JBehave tests running when I do maven
> install, I know this is problably some maven clutter i've put this in my
> pom, I just want jbehave test to be run on every build:
>
>       <plugins>
>           <plugin>
>               <groupId>org.apache.maven.plugins</groupId>
>               <artifactId>maven-compiler-plugin</artifactId>
>               <configuration>
>                   <source>1.5</source>
>                   <target>1.5</target>
>               </configuration>
>           </plugin>
>           <plugin>
>               <groupId>org.jbehave</groupId>
>               <artifactId>jbehave-maven-plugin</artifactId>
>               <configuration>
>                   <scenarioIncludes>
>
>  <scenarioInclude>**/*scenario/*.java</scenarioInclude>
>                   </scenarioIncludes>
>                   <scenarioExcludes>
>                       <scenarioExclude>**/*Steps.java</scenarioExclude>
>                   </scenarioExcludes>
>               </configuration>
>           </plugin>
>
>
> And I do have my tests in a package called scenario, and the tests are
> running from within eclipse.
>
>
>
> regards Nino
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to