Skip to content

Commit

Permalink
[DICE-UNC#447] Add documentation to docker-test-framework README demo…
Browse files Browse the repository at this point in the history
…nstrating how to run specific tests.
  • Loading branch information
korydraughn committed May 21, 2024
1 parent 43fe881 commit d48fc50
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docker-test-framework/DOCKERTEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@ LICENSE.txt data-profile docker-build.sh eclipse-formatting.xml jargon-dat
```

Here's a helpful command for running specific tests.

```
mvn test -Dtest='<class>#<method>,<class>#<method>, ...' -DfailIfNoTests=false -pl <module> -am
```

Below is an example demonstrating how to run two tests in the jargon-core module.

```
mvn test \
-Dtest='DataObjectAOImplTest#testReplicaTruncateNoTargetReplica,DataObjectAOImplTest#testReplicaTruncateInvalidInputs' \
-DfailIfNoTests=false \
-pl jargon-core \
-am
```


Note the settings.xml file is mounted that has the correct coordinates for the iRODS grid pre-configured with test accounts, resources, groups, etc as expected by the Jargon unit test framework.

0 comments on commit d48fc50

Please sign in to comment.