Search/Navigation:
Related:
SLAC/EPP
/HPS Public
Jefferson Lab/Hall B
/HPS Run Wiki
S30XL-LESA/LDMX
...
No Format |
---|
cd hps-java-trunk/distribution mvn |
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 | ||||
---|---|---|---|---|
| ||||
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 | ||||
---|---|---|---|---|
| ||||
cd hps-java-trunk/integration-tests; mvn verify |
The integration tests can also be activated individually.
Code Block | ||||
---|---|---|---|---|
| ||||
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.
...
Code Block | ||
---|---|---|
| ||
<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> |
Code Block | ||
---|---|---|
| ||
<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> |
Code Block | ||
---|---|---|
| ||
<repository> <id>jlab-coda-repo-public</id> <name>JLAB CODA Maven Repository</name> <url>https://coda.jlab.org/maven/</url> </repository> |