- Using gradle -
./gradlew clean test
- Using docker -
- Start Docker Desktop
- Start the graphql service stub using
docker run -v "$PWD/specmatic.yml:/usr/src/app/specmatic.yml" -v "$PWD/src/test/resources/specmatic/graphql/examples:/usr/src/app/examples" -p 8080:8080 znsio/specmatic-graphql-trial virtualize --port=8080 --examples=examples
- Run the application -
./gradlew bootRun
- Run the tests -
docker run --network host -v "$PWD/specmatic.yml:/usr/src/app/specmatic.yml" -v "$PWD/build/reports/specmatic:/usr/src/app/build/reports/specmatic" znsio/specmatic test --port=8070 --host=host.docker.internal
Look at the ContractTest
class to see how the GraphQL dependency has been stubbed out.
- Checkout the Order API project from here, and start it up using the instructions in it's README.
- Checkout the BFF project from here, and start it up using the instructions in it's README.
- Execute this command:
./gradlew bootRun