Tests can be executed in the terminal, from the root folder of the project:
./gradlew test
You can also run the tests automatically every time there are changes in the filesystem:
./gradlew -t test
Or you can use your IDE to run the tests
- Java JDK 8+
With SDKMAN (Recommended - see below how to install SDKMAN):
sdk install java
Or with Homebrew:
brew tap caskroom/versions
brew cask install java8
- SDKMAN
This is a tool that helps managing the installation and management of different versions of the binaries for different languages, build tools, etc. around the JVM.
The installation instructions can be found at https://sdkman.io/install
With this tool, you can install java
and gradle
, also with multiple versions at the same time, and activate different versions easily, which is great when having to work on different projects that use different versions.
Java Examples:
sdk list java
sdk install java
sdk install java 8.0.201-zulu
sdk install java 11.0.2-zulu
sdk use java 8.0.201-zulu
sdk use java 11.0.2-zulu
For a full list of all the tools that can be managed with SDKMAN:
sdk list
- Gradle
We are using gradle
as our building and dependency management tool,
but since we are using the wrapper, we don't need to have it installed.
But in case you want to have it installed locally anyways, you can do it with either:
With SDKMAN (Recommended)
sdk install gradle
or with Homebrew:
brew install gradle