Before running tests, ensure all steps in the BUILDING.md have been performed.
Tests are broken up into five types - unit, integration, distributed, acceptance, and upgrade. They can be executed using the following commands from the Geode repository root directory:
To run an individual test, you can either
./gradlew project:testType --tests testName
./gradlew geode-core:test --tests ArrayUtilsTest
./gradlew geode-core:distributedTest --tests ConnectionPoolDUnitTest
To run a specific category of tests (eg: GfshTest):
./gradlew project:testType -PtestCategory=fullyQualifiedTestClassName
./gradlew geode-core:distributedTest -PtestCategory=org.apache.geode.test.junit.categories.GfshTest
Available categories can be found in the
geode-junit/src/main/java/org/apache/geode/test/junit/categories in the Geode repository.
Test results can be viewed by navigating to
build/reports/combined in the Geode repository, then opening the
index.html file in your browser.