maven - pass an argument to jbehave execution -
i want pass argument jbehave test precondition it's execution
for example
mvn clean install myargument
is can ?
thanks
<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>
and maven command :
mvn clean install -dfilename="argument"
Comments
Post a Comment