mirror of
https://github.com/apache/struts.git
synced 2026-08-05 22:56:59 +00:00
WW-5232 Applies proper coverage settings for Jacoco plugin and Sonar
This commit is contained in:
@@ -125,6 +125,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<argLine>@{argLine}</argLine>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>it/**</exclude>
|
<exclude>it/**</exclude>
|
||||||
<exclude>**/*$*</exclude>
|
<exclude>**/*$*</exclude>
|
||||||
|
|||||||
@@ -237,6 +237,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<argLine>@{argLine}</argLine>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>it/**</exclude>
|
<exclude>it/**</exclude>
|
||||||
<exclude>**/*$*</exclude>
|
<exclude>**/*$*</exclude>
|
||||||
|
|||||||
+1
-3
@@ -41,6 +41,7 @@
|
|||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<argLine>@{argLine}</argLine>
|
||||||
<properties>
|
<properties>
|
||||||
<property>
|
<property>
|
||||||
<name>maven.testng.output.dir</name>
|
<name>maven.testng.output.dir</name>
|
||||||
@@ -54,9 +55,6 @@
|
|||||||
<element>${project.build.testOutputDirectory}/xwork - jar.jar</element>
|
<element>${project.build.testOutputDirectory}/xwork - jar.jar</element>
|
||||||
<element>${project.build.testOutputDirectory}/xwork - zip.zip</element>
|
<element>${project.build.testOutputDirectory}/xwork - zip.zip</element>
|
||||||
</additionalClasspathElements>
|
</additionalClasspathElements>
|
||||||
<includes>
|
|
||||||
<include>**/*Test.java</include>
|
|
||||||
</includes>
|
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>**/XWorkTestCase.java</exclude>
|
<exclude>**/XWorkTestCase.java</exclude>
|
||||||
<exclude>**/TestBean.java</exclude>
|
<exclude>**/TestBean.java</exclude>
|
||||||
|
|||||||
@@ -97,6 +97,7 @@
|
|||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<argLine>@{argLine}</argLine>
|
||||||
<additionalClasspathElements>
|
<additionalClasspathElements>
|
||||||
<element>${project.build.testOutputDirectory}/jsps.jar</element>
|
<element>${project.build.testOutputDirectory}/jsps.jar</element>
|
||||||
</additionalClasspathElements>
|
</additionalClasspathElements>
|
||||||
|
|||||||
@@ -130,6 +130,8 @@
|
|||||||
<sonar.organization>apache</sonar.organization>
|
<sonar.organization>apache</sonar.organization>
|
||||||
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
|
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
|
||||||
<sonar.exclusions>apps/**</sonar.exclusions>
|
<sonar.exclusions>apps/**</sonar.exclusions>
|
||||||
|
|
||||||
|
<argLine>-Duser.language=en -Duser.country=US -Duser.region=US</argLine>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
@@ -199,6 +201,7 @@
|
|||||||
--add-opens java.base/java.lang=ALL-UNNAMED
|
--add-opens java.base/java.lang=ALL-UNNAMED
|
||||||
--add-opens java.base/java.util=ALL-UNNAMED
|
--add-opens java.base/java.util=ALL-UNNAMED
|
||||||
-Dillegal-access=permit
|
-Dillegal-access=permit
|
||||||
|
@{argLine}
|
||||||
</argLine>
|
</argLine>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
@@ -264,7 +267,7 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<configuration>
|
<configuration>
|
||||||
<argLine>-Duser.language=en -Duser.region=US</argLine>
|
<argLine>@{argLine}</argLine>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/*Test.java</include>
|
<include>**/*Test.java</include>
|
||||||
</includes>
|
</includes>
|
||||||
|
|||||||
Reference in New Issue
Block a user