我想将一些参数传递给jbehave test作为执行它的前提条件
例如
mvn clean install myArgument
这是我可以做的事情吗?
由于
答案 0 :(得分: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>
和maven命令:
mvn clean install -DfileName="argument"