Skip to content

Commit c71264d

Browse files
committed
Added report generation even if a test fails
1 parent 6114eab commit c71264d

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

pom.xml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,31 @@
7373
<groupId>org.apache.maven.plugins</groupId>
7474
<artifactId>maven-surefire-plugin</artifactId>
7575
<version>3.2.3</version>
76+
<configuration>
77+
<skipTests>true</skipTests>
78+
</configuration>
79+
</plugin>
80+
81+
<plugin>
82+
<groupId>org.apache.maven.plugins</groupId>
83+
<artifactId>maven-failsafe-plugin</artifactId>
84+
<version>3.2.3</version>
85+
<executions>
86+
<execution>
87+
<goals>
88+
<goal>integration-test</goal>
89+
<goal>verify</goal>
90+
</goals>
91+
</execution>
92+
</executions>
7693
<configuration>
7794
<argLine>
7895
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
7996
</argLine>
97+
<includes>
98+
<include>**/*Test.java</include>
99+
<include>**/*Tests.java</include>
100+
</includes>
80101
</configuration>
81102
<dependencies>
82103
<dependency>
@@ -98,7 +119,7 @@
98119
<executions>
99120
<execution>
100121
<id>allure-reports</id>
101-
<phase>verify</phase>
122+
<phase>post-integration-test</phase>
102123
<goals>
103124
<goal>report</goal>
104125
</goals>

0 commit comments

Comments
 (0)