我无法使用mvn测试执行黄瓜弹簧整合测试。请参考下面的pom.xml-
我正在使用黄瓜弹簧,黄瓜java8和黄瓜Junit。 当我尝试运行mvn测试或mvn全新安装功能未运行时。
//Code
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>4.8.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>4.8.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-spring</artifactId>
<version>4.8.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<parallel>both</parallel>
<threadCount>4</threadCount>
<includes>
<include>**/*RunCucumberTest.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</project>
答案 0 :(得分:0)
如果您删除了老式引擎(负责在新的junit 5平台上运行旧的junit 3/4测试的引擎,则不会选择您的旧测试。它是junit老式引擎来检测这些测试并在新平台上运行。 / p>
不幸的是,黄瓜仍在4号机上,所以没有被采摘。