Skip to content

Test Execution

In SDP Pipeline Libraries, tests are placed in a directory called test within the library directory.

Executing tests with Gradle


This repository has been set up to run Jenkins-Spock tests using Gradle.

Currently, Gradle 6.3.0 running on JDK 8 is required. These can be downloaded on OSX via:

# gradle via sdkman: https://sdkman.io/
curl -s "https://get.sdkman.io" | bash
source "$(pwd)/.sdkman/bin/sdkman-init.sh"
sdk install gradle 6.3

# java8
brew install adoptopenjdk8
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
alias java8='export JAVA_HOME=$JAVA_8_HOME'
java8

See the Contributing Guide for instructions on running unit tests.

Back to top