Java Allure使用junit、cucumber JVM和maven两次显示测试用例
我正在用Junit和maven执行一些Cumber脚本 我想实施诱惑报道 我使用io.cucumber(6.8.2)allure(allure-cucumber6-jvm:2.13.6) 当我使用IDE运行Cucumber测试时,我的测试执行一次,并且在allure results文件夹中只生成一个结果文件。很好 但是,当我使用maven执行相同的测试时,会生成两个结果文件 有人有线索吗 我的命令行Java Allure使用junit、cucumber JVM和maven两次显示测试用例,java,maven,cucumber,cucumber-jvm,allure,Java,Maven,Cucumber,Cucumber Jvm,Allure,我正在用Junit和maven执行一些Cumber脚本 我想实施诱惑报道 我使用io.cucumber(6.8.2)allure(allure-cucumber6-jvm:2.13.6) 当我使用IDE运行Cucumber测试时,我的测试执行一次,并且在allure results文件夹中只生成一个结果文件。很好 但是,当我使用maven执行相同的测试时,会生成两个结果文件 有人有线索吗 我的命令行 mvn -PwlmGherkins -Dcucumber.filter.tags="@
mvn -PwlmGherkins -Dcucumber.filter.tags="@Allure" clean compile test
我的pom.xml
<profiles>
<profile>
<!-- Profile pour l\'execution des tests gherkins -->
<id>wlmGherkins</id>
<properties>
<test.include.tags/>
<test.includes>**/WlmCucumberTest.java</test.includes>
</properties>
</profile>
</profiles>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
<configuration>
<includes>
<include>${test.includes}</include>
</includes>
<groups>${test.include.tags}</groups>
<testFailureIgnore>false</testFailureIgnore>
<argLine>
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
</argLine>
<systemProperties>
<property>
<name>junit.jupiter.extensions.autodetection.enabled</name>
<value>true</value>
</property>
</systemProperties>
</configuration>
<dependencies>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-surefire-provider</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.9.5</version>
</dependency>
</dependencies>
</plugin>
我的功能文件
@wlm
@Allure
@WLM-ZZZ
Feature: My feature ZZZZ
@TmsLink("WLM-ZZZ")
Scenario: WLM-ZZZ: My Scenario With Bug
#1
Then Step "2" : Step With Bug
@wlm
@Allure
@WLM-ZZZ
Feature: My feature ZZZZ
@TmsLink("WLM-ZZZ")
Scenario: WLM-ZZZ: My Scenario With Bug
#1
Then Step "2" : Step With Bug