Skip to content
Snippets Groups Projects
Commit adfaa33d authored by Vincent Massol's avatar Vincent Massol
Browse files

XWIKI-11745: Fail the build when unit test output content to stdout or stderr

parent 70ba1406
No related branches found
No related tags found
No related merge requests found
Showing
with 172 additions and 4 deletions
......@@ -311,7 +311,21 @@
<value>${basedir}/target/screenshots</value>
</property>
</systemProperties>
<!-- Verify that unit tests don't output anything to stdout/stderr -->
<properties>
<property>
<name>listener</name>
<value>org.xwiki.test.CaptureConsoleRunListener</value>
</property>
</properties>
</configuration>
<dependencies>
<dependency>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-tool-test-simple</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
......
......@@ -115,6 +115,14 @@
</execution>
</executions>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -107,6 +107,14 @@
</excludes>
</configuration>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -71,6 +71,14 @@
</excludes>
</configuration>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -85,6 +85,14 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......
......@@ -91,6 +91,14 @@
</excludes>
</configuration>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -99,6 +99,14 @@
</excludes>
</configuration>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
......@@ -99,6 +99,14 @@
</excludes>
</configuration>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -144,6 +144,14 @@
</excludes>
</configuration>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -77,7 +77,6 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.xwiki.platform</groupId>
......@@ -98,7 +97,6 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
......@@ -137,6 +135,14 @@
</excludes>
</configuration>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -96,6 +96,14 @@
</excludes>
</configuration>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -109,6 +109,14 @@
</excludes>
</configuration>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -178,6 +178,8 @@
<classpathDependencyExcludes>
<classpathDependencyExcludes>org.xwiki.platform:xwiki-platform-oldcore:jar</classpathDependencyExcludes>
</classpathDependencyExcludes>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
......
......@@ -65,4 +65,16 @@
<artifactId>slf4j-api</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -102,6 +102,14 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -644,9 +644,13 @@
</dependencies>
<build>
<plugins>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
<!-- Publish a Core Test JAR -->
<plugin>
......
......@@ -46,4 +46,16 @@
<artifactId>commons-collections</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -112,6 +112,14 @@
</excludes>
</configuration>
</plugin>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -48,13 +48,11 @@
<artifactId>resin-quercus</artifactId>
<version>3.2.1</version>
</dependency>
<!-- Quercus needs the servlet API to properly initialize -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</dependency>
<!-- Testing dependencies -->
<dependency>
<groupId>org.xwiki.platform</groupId>
......@@ -70,4 +68,16 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -42,4 +42,16 @@
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- TODO: Remove once the tests have been fixed to not output anything to the console! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment