aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2020-01-07 00:44:01 +0000
committerAndreas Beeker <kiwiwings@apache.org>2020-01-07 00:44:01 +0000
commit46f1242d0305e5b1088c409ac2b7e950c58a9f62 (patch)
treeaa93c4198d9d5de4d16faef5e3c0fedc8342b70f
parenta4c370f913436f79ecd5c963a6b3bb410b724ecf (diff)
downloadpoi-46f1242d0305e5b1088c409ac2b7e950c58a9f62.tar.gz
poi-46f1242d0305e5b1088c409ac2b7e950c58a9f62.zip
add integration-test to sonar to update test coverage
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872400 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--sonar/integration-test/pom.xml119
-rw-r--r--sonar/pom.xml15
2 files changed, 127 insertions, 7 deletions
diff --git a/sonar/integration-test/pom.xml b/sonar/integration-test/pom.xml
new file mode 100644
index 0000000000..1609704478
--- /dev/null
+++ b/sonar/integration-test/pom.xml
@@ -0,0 +1,119 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.poi</groupId>
+ <artifactId>poi-parent</artifactId>
+ <version>4.1.2-SNAPSHOT</version>
+ </parent>
+ <artifactId>integration-test</artifactId>
+ <packaging>jar</packaging>
+
+ <name>Apache POI integration test</name>
+
+ <build>
+ <plugins>
+ <!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>${maven.plugin.resources.version}</version>
+ <executions>
+ <execution>
+ <id>copy-tests</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/src/test/java</outputDirectory>
+ <resources>
+ <resource>
+ <directory>../../src/integrationtest</directory>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <!-- clean copied sources afterwards -->
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>${maven.plugin.clean.version}</version>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>src</directory>
+ <followSymlinks>false</followSymlinks>
+ </fileset>
+ <fileset>
+ <directory>build</directory>
+ <followSymlinks>false</followSymlinks>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+
+
+ <!-- set jvm parameters for surefire plugin -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${maven.plugin.surefire.version}</version>
+ <configuration>
+ <argLine>@{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -Djava.io.tmpdir=${basedir}/target/tmp -XX:-OmitStackTraceInFastThrow</argLine>
+ <workingDirectory>../..</workingDirectory>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>poi-ooxml</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>poi-scratchpad</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>poi-examples</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.reflections</groupId>
+ <artifactId>reflections</artifactId>
+ <version>0.9.11</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.openjdk.jmh</groupId>
+ <artifactId>jmh-core</artifactId>
+ <version>1.19</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>1.10.7</version>
+ <scope>test</scope>
+ </dependency>
+
+
+
+ </dependencies>
+</project>
diff --git a/sonar/pom.xml b/sonar/pom.xml
index 9858db4060..6c66e4dba7 100644
--- a/sonar/pom.xml
+++ b/sonar/pom.xml
@@ -64,6 +64,7 @@
<module>scratchpad</module>
<module>excelant</module>
<module>examples</module>
+ <module>integration-test</module>
</modules>
<properties>
@@ -73,15 +74,15 @@
<!-- define some of the third-party or plugin-versions globally to use the same in all modules -->
<xmlbeans.version>3.1.0</xmlbeans.version>
- <junit.version>4.12</junit.version>
- <xmlunit.version>2.5.1</xmlunit.version>
+ <junit.version>4.13</junit.version>
+ <xmlunit.version>2.6.3</xmlunit.version>
<mockito.version>2.13.0</mockito.version>
- <maven.plugin.resources.version>3.0.1</maven.plugin.resources.version>
- <maven.plugin.jar.version>3.0.1</maven.plugin.jar.version>
- <maven.plugin.clean.version>3.0.0</maven.plugin.clean.version>
+ <maven.plugin.resources.version>3.1.0</maven.plugin.resources.version>
+ <maven.plugin.jar.version>3.2.0</maven.plugin.jar.version>
+ <maven.plugin.clean.version>3.1.0</maven.plugin.clean.version>
<maven.plugin.download.version>1.1.0</maven.plugin.download.version>
<maven.plugin.antrun.version>1.8</maven.plugin.antrun.version>
- <maven.plugin.surefire.version>2.19.1</maven.plugin.surefire.version>
+ <maven.plugin.surefire.version>3.0.0-M4</maven.plugin.surefire.version>
</properties>
<build>
@@ -90,7 +91,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.5.1</version>
+ <version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>