Skip to content

Commit

Permalink
Add testing framework
Browse files Browse the repository at this point in the history
  • Loading branch information
mwoodiupui committed May 23, 2012
1 parent cbbd104 commit a073f85
Showing 1 changed file with 133 additions and 4 deletions.
137 changes: 133 additions & 4 deletions dspace-stats/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<!--
The Subversion repository location is used by Continuum to update
against when changes have occured, this spawns a new build cycle and
against when changes have occurred. This spawns a new build cycle and
releases snapshots into the snapshot repository below.
-->
<scm>
Expand All @@ -25,6 +25,99 @@
<url>http://scm.dspace.org/svn/repo/dspace/trunk/dspace-stats</url>
</scm>

<build>
<plugins>
<plugin>
<groupId>com.google.code.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.4.0</version>
<configuration>
<header>http://scm.dspace.org/svn/repo/licenses/LICENSE_HEADER</header>
<includes>
<include>src/**</include>
</includes>
<excludes>
<exclude>src/test/resources/dspaceFolder/**</exclude>
</excludes>
<properties />
<encoding>UTF-8</encoding>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>setupTestEnvironment</id>
<phase>generate-test-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/testing</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<version>${project.version}</version>
<type>zip</type>
<classifier>testEnvironment</classifier>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>edu.iu.ul.maven.plugins</groupId>
<artifactId>fileweaver</artifactId>
<version>1.0</version>
<configuration>
<outputs>
<output>
<outputPath>${project.build.directory}/testing</outputPath>
<name>dspace.cfg.woven</name>
<parts>
<part><path>${project.build.directory}/testing/dspace/config/dspace.cfg</path></part>
<part><path>${project.build.directory}/testing/dspace.cfg.more</path></part>
</parts>
<properties>
<default.dspace.dir>${project.build.directory}/testing/dspace</default.dspace.dir>
</properties>
</output>
</outputs>
</configuration>
<executions>
<execution>
<id>edit-dspace-cfg</id>
<phase>process-test-resources</phase>
<goals>
<goal>weave</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<dspace.dir>${project.build.directory}/testing/dspace</dspace.dir>
<dspace.configuration>${project.build.directory}/testing/dspace.cfg.woven</dspace.configuration>
<dspace.log.init.disable>true</dspace.log.init.disable>
<db.schema.path>${project.build.directory}/testing/dspace/etc/h2/database_schema.sql</db.schema.path>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>

<developers>
<developer>
<name>Ben Bosman</name>
Expand Down Expand Up @@ -82,7 +175,7 @@
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>3.3.0</version>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>org.dspace.dependencies</groupId>
Expand All @@ -108,7 +201,43 @@
<artifactId>utils</artifactId>
<version>1.07.00</version>
</dependency>
</dependencies>
<dependency>
<groupId>org.databene</groupId>
<artifactId>contiperf</artifactId>
<version>1.07</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.dspace.dependencies.jmockit</groupId>
<artifactId>dspace-jmockit</artifactId>
<version>0.999.4</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.3.158</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-api</artifactId>
<version>${project.version}</version>
<type>jar</type>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
</dependencies>

<reporting>
<excludeDefaults>false</excludeDefaults>
Expand All @@ -134,4 +263,4 @@
</plugin>
</plugins>
</reporting>
</project>
</project>

0 comments on commit a073f85

Please sign in to comment.