Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
cd hps-java-trunk/distribution
mvn

Tests

There are two types of tests in the HPS Java project: unit tests and integration tests.  

Unit tests will run by default if not disabled with the -DskipTests flag to Maven.  These tests typically cover a single class in the project and run quickly.

A specific test can be run from its submodule using a command like the following.

Code Block
languagebash
themeMidnight
cd hps-java-trunk/conditions; mvn test -Dtest=DatabaseConditionsManagerTest

Integration tests cover multiple classes or packages and may take several minutes or more to run.

All the integration tests are in the integration-tests module and can be run as follows.

Code Block
languagebash
themeMidnight
cd hps-java-trunk/integration-tests; mvn verify

The integration tests can also be activated individually.

Code Block
languagebash
themeMidnight
cd hps-java-trunk/integration-tests; mvn -Dit.test=ReconSteeringTest verify

When developing, you will typically want to check periodically that relevant integration tests pass.

Running the Distribution Jar

...

The following Maven repositories provide the the jar dependencies for HPS Java, which are not found in Maven central.

Freehep Repository

 

Code Block
languagexml
<repository>    
    <id>freehep-repo-public</id>
    <name>FreeHEP Maven Public</name>
    <url>http://srs.slac.stanford.edu/nexus/content/groups/freehep-maven2-public/</url>
</repository>

LCSim Repository

 

Code Block
languagexml
<repository>
    <id>lcsim-repo-public</id>
    <name>LCSIM Public Maven Repository</name>
    <url>http://srs.slac.stanford.edu/nexus/content/groups/lcsim-maven2-public/</url>
</repository>

 

CODA Repository

 

Code Block
languagexml
<repository>
    <id>jlab-coda-repo-public</id>
    <name>JLAB CODA Maven Repository</name>
    <url>https://coda.jlab.org/maven/</url>
</repository>