Sample project for the next talks.
- "Isolated & Integrated tests - A Mindset change"
- "Designing a preventive strategy - With Isolated & Integrated tests"
- Back - Run and publish contract tests
- Back - Run integration tests
- Back - Run E2E tests
- Front - Mount isolated environment
- Front - Run E2E tests
-
Build the project and publish to maven local repository.
./gradlew :back-test.infrastructure:publishToMavenLocal
-
You can find the generated test for the contract in the
src/contractTest/java
directory. -
You can find the generated stub in your
~/.m2/repository/com/qajungle/talks/integratedandisolated/backtest/back-test.infrastructure/1.0-SNAPSHOT
directory.
-
Start Docker service.
-
Run the integration test:
./gradlew :back-test.infrastructure:test --tests com.qajungle.talks.integratedandisolated.backtest.infrastructure.persistence.jpa.nobelPrize.JpaNobelPrizeRepositoryAdapterIntegrationTest
INFO: Tkiero plugin has yet to be opened to the world |
---|
-
Run TKiero task with local profile:
./gradlew clean build e2eTest -Pprofile=isolated
-
To start run yarn command:
yarn isolated:up
-
To stop run yarn command:
yarn isolated:down
-
To run E2E run yarn command:
yarn e2eTest