Skip to content

How to build and run tests

Lemi Orhan Ergin edited this page May 25, 2021 · 2 revisions

1. Build

# Let gradle starts dockerized servers before integration tests

./gradlew clean build

# Starts dockerized servers independently before integration tests

./infra-setup.sh infra up
./gradlew clean build -PskipInfraSetup
./infra-setup.sh infra down

2. Run tests

# Run test just for payment API

./gradlew clean :payment-api:test

# Run test for all apis

./gradlew clean test

3. Generate contract tests

# For all apis, no matter what happened on the last build, recreate again

./gradlew clean generateContractTests -Pall --rerun-tasks
Clone this wiki locally