Cucumber测试不再从Maven上下文运行
在我最近的一次提交中,我似乎不知何故破坏了运行cumber测试的能力。我试着划回去,但没有用。有人能看到明显的东西吗?这是一个包含两个模块和一个父pom的项目。生成运行正常,没有错误,但运行0个测试。我不知所措 我附上了IntelliJ的截图(请原谅隐藏“秘密”的粗糙画作): 我使用以下目标:Cucumber测试不再从Maven上下文运行,maven,cucumber,Maven,Cucumber,在我最近的一次提交中,我似乎不知何故破坏了运行cumber测试的能力。我试着划回去,但没有用。有人能看到明显的东西吗?这是一个包含两个模块和一个父pom的项目。生成运行正常,没有错误,但运行0个测试。我不知所措 我附上了IntelliJ的截图(请原谅隐藏“秘密”的粗糙画作): 我使用以下目标: mvn verify -Dcucumber.options="src/test/resources/features/myCool.feature" …这样我就可以生成cucumber报告了。我的父p
mvn verify -Dcucumber.options="src/test/resources/features/myCool.feature"
…这样我就可以生成cucumber报告了。我的父pom包含以下构建阶段:
<build>
<plugins>
<plugin>
<inherited>true</inherited>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<includes>**/RunTest.java</includes>
<testFailureIgnore>true</testFailureIgnore>
<properties>
<property>
<name>suitepoolthreadsize</name>
<value>10</value>
</property>
<property>
<name>parallel</name>
<value>methods</value>
</property>
<property>
<name>threadCount</name>
<value>10</value>
</property>
<property>
<name>dataproviderthreadcount</name>
<value>30</value>
</property>
</properties>
</configuration>
</plugin>
<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>3.9.0</version>
<executions>
<execution>
<id>execution</id>
<phase>verify</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<projectName>cucumber-jvm-example</projectName>
<outputDirectory>${project.build.directory}/site/cucumber-reports</outputDirectory>
<cucumberOutput>${project.build.directory}/cucumber.json</cucumberOutput>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
功能文件的名称错误-doh
[WARNING] C:\company-automation\blah-supplier-tests\target\cucumber.json does not exist.