2015-04-01 1 views

Répondre

0
<plugin> 
       <groupId>org.jbehave</groupId> 
       <artifactId>jbehave-maven-plugin</artifactId> 
       <version>4.0.1</version> 
       <executions> 
        <execution> 
         <id>run-stories</id> 
         <phase>integration-test</phase> 
         <configuration> 
          <storyTimeoutInSecs>600</storyTimeoutInSecs> 
          <systemProperties> 
           <property> 
            <name>fileName</name> 
            <value>${fileName}}</value> 
           </property> 
          </systemProperties> 
          <includes> 
           <include>**/${fileName}</include> 
          </includes> 
          <scope>test</scope> 
         </configuration> 
         <goals> 
          <goal>run-stories-as-embeddables</goal> 
         </goals> 
        </execution> 
       </executions> 
      </plugin> 
     </plugins> 
    </build> 

et commande maven:

mvn clean install -DfileName="argument"