Update testing commands in README based on changes

This commit is contained in:
Tim Donohue
2020-09-18 14:52:19 -05:00
parent 4aa71ca221
commit c40b60c8b9

View File

@@ -90,33 +90,33 @@ run automatically by [Travis CI](https://travis-ci.com/DSpace/DSpace/) for all P
* How to run both Unit Tests (via `maven-surefire-plugin`) and Integration Tests (via `maven-failsafe-plugin`): * How to run both Unit Tests (via `maven-surefire-plugin`) and Integration Tests (via `maven-failsafe-plugin`):
``` ```
mvn clean test -DskipTests=false -DskipITs=false mvn install -DskipUnitTests=false -DskipIntegrationTests=false
``` ```
* How to run just Unit Tests: * How to run _only_ Unit Tests:
``` ```
mvn test -DskipTests=false mvn test -DskipUnitTests=false
``` ```
* How to run a *single* Unit Test * How to run a *single* Unit Test
``` ```
# Run all tests in a specific test class # Run all tests in a specific test class
# NOTE: failIfNoTests=false is required to skip tests in other modules # NOTE: failIfNoTests=false is required to skip tests in other modules
mvn test -DskipTests=false -Dtest=[full.package.testClassName] -DfailIfNoTests=false mvn test -DskipUnitTests=false -Dtest=[full.package.testClassName] -DfailIfNoTests=false
# Run one test method in a specific test class # Run one test method in a specific test class
mvn test -DskipTests=false -Dtest=[full.package.testClassName]#[testMethodName] -DfailIfNoTests=false mvn test -DskipUnitTests=false -Dtest=[full.package.testClassName]#[testMethodName] -DfailIfNoTests=false
``` ```
* How to run Integration Tests (requires enabling Unit tests too) * How to run _only_ Integration Tests
``` ```
mvn verify -DskipTests=false -DskipITs=false mvn install -DskipIntegrationTests=false
``` ```
* How to run a *single* Integration Test (requires enabling Unit tests too) * How to run a *single* Integration Test
``` ```
# Run all integration tests in a specific test class # Run all integration tests in a specific test class
# NOTE: failIfNoTests=false is required to skip tests in other modules # NOTE: failIfNoTests=false is required to skip tests in other modules
mvn test -DskipTests=false -DskipITs=false -Dtest=[full.package.testClassName] -DfailIfNoTests=false mvn install -DskipIntegrationTests=false -Dtest=[full.package.testClassName] -DfailIfNoTests=false
# Run one test method in a specific test class # Run one test method in a specific test class
mvn test -DskipTests=false -DskipITs=false -Dtest=[full.package.testClassName]#[testMethodName] -DfailIfNoTests=false mvn install -DskipIntegrationTests=false -Dtest=[full.package.testClassName]#[testMethodName] -DfailIfNoTests=false
``` ```
* How to run only tests of a specific DSpace module * How to run only tests of a specific DSpace module
``` ```