updated to support MySQL test cases

Former-commit-id: 6030de95a37397559470bb0f0bb801ed1ff058c6
This commit is contained in:
Jeremy Long
2014-01-12 08:18:18 -05:00
parent 9b04ceedf1
commit 45ae3209b6

View File

@@ -135,7 +135,7 @@ along with Dependency-Check. If not, see <http://www.gnu.org/licenses />.
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId> <artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.2</version> <version>2.6</version>
<configuration> <configuration>
<instrumentation> <instrumentation>
<ignores> <ignores>
@@ -185,14 +185,9 @@ along with Dependency-Check. If not, see <http://www.gnu.org/licenses />.
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.14</version> <version>2.16</version>
<configuration> <configuration>
<systemProperties> <systemProperties>
<property>
<name>net.sourceforge.cobertura.datafile</name>
<value>${project.build.directory}/cobertura/cobertura.ser</value>
<workingDirectory>target</workingDirectory>
</property>
<property> <property>
<name>data.directory</name> <name>data.directory</name>
<value>${project.build.directory}/data</value> <value>${project.build.directory}/data</value>
@@ -204,13 +199,14 @@ along with Dependency-Check. If not, see <http://www.gnu.org/licenses />.
</systemProperties> </systemProperties>
<excludes> <excludes>
<exclude>**/*IntegrationTest.java</exclude> <exclude>**/*IntegrationTest.java</exclude>
<exclude>**/*MySQLTest.java</exclude>
</excludes> </excludes>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId> <artifactId>maven-failsafe-plugin</artifactId>
<version>2.14</version> <version>2.16</version>
<configuration> <configuration>
<systemProperties> <systemProperties>
<property> <property>
@@ -294,12 +290,12 @@ along with Dependency-Check. If not, see <http://www.gnu.org/licenses />.
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId> <artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.2</version> <version>2.6</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId> <artifactId>maven-surefire-report-plugin</artifactId>
<version>2.14</version> <version>2.16</version>
<reportSets> <reportSets>
<reportSet> <reportSet>
<reports> <reports>
@@ -572,4 +568,51 @@ along with Dependency-Check. If not, see <http://www.gnu.org/licenses />.
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
</dependencies> </dependencies>
<profiles>
<profile>
<id>MySQL-IntegrationTest</id>
<activation>
<property>
<name>mysql</name>
<!--value>test</value-->
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.16</version>
<configuration>
<systemProperties>
<property>
<name>data.directory</name>
<value>${project.build.directory}/data</value>
</property>
</systemProperties>
<includes>
<include>**/*MySQLTest.java</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>