From d48fc501572dabc3b4d230bd74cb6f0e20695ef9 Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Tue, 14 May 2024 13:27:36 -0400 Subject: [PATCH] [#447] Add documentation to docker-test-framework README demonstrating how to run specific tests. --- docker-test-framework/DOCKERTEST.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docker-test-framework/DOCKERTEST.md b/docker-test-framework/DOCKERTEST.md index ad26f5c2e..740a546e3 100644 --- a/docker-test-framework/DOCKERTEST.md +++ b/docker-test-framework/DOCKERTEST.md @@ -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='#,#, ...' -DfailIfNoTests=false -pl -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.