...
Geode is built with gradle. See Building and Running Geode from Source for BUILDING.md in the Geode repository for instructions on how to build from source.
Geode uses the standard gradle lifecycle. On Unix platforms, to build and run all tests:
./gradlew clean build
Geode has quite a few tests, so this will take several hours. The tests are broken divided into the following categoriestypes:
- unit tests - run with
./gradlew test
- integration tests - run with
./gradlew integrationTest
- distributed integration tests - run with
./gradlew distributedTest
- acceptance tests - run with
./gradlew acceptanceTest
To run an individual test, run the test in your IDE or specify the sub-project and test type like so:
./gradlew [project:]testType --tests testName [project:]testType
For example:
./gradlew integrationTest --tests ArrayUtilsJUnitTest integrationTest
To run a specific category of tests (eg: GfshTest) you can do so with:
./gradlew distributedTest -PtestCategory=org.apache.geode.test.junit.categories.GfshTest distributedTest
Setting up your IDE
Eclipse
...
In order to build the project successfully in IntelliJ and run tests, it is recommended to disable to enable → Preferences → Build, Execution, Deployment → Build Tools → Gradle → "Create separate module per source set". It is also recommended to enable "Use auto-import" .