contracts: consumer-driven contract testing lab (Spring Cloud Contract 5.0.3, Stubborn Contract 0.2.4, Pact JVM 4.7.7 on Spring Boot 4.2.0)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7h4ZNF4BDUpJk3Zou
This commit is contained in:
Claude
2026-11-29 02:29:20 +05:30
parent d7497c8ab1
commit 8a429ca578
46 changed files with 1986 additions and 0 deletions
+2
View File
@@ -10,6 +10,7 @@ Runnable companion code for the testing posts on [ankurm.com](https://ankurm.com
| [`instancio/`](instancio) | Instancio: Generate Realistic Test Data Automatically in Java | Instancio 6.1.0, JUnit 6.1.3, JDK 25 |
| [`gatling-spring-boot/`](gatling-spring-boot) | Load Testing Spring Boot with Gatling's Java DSL (and How It Compares to k6) | Gatling 3.16.0, Spring Boot 4.1.2, k6 v2.3.0, JDK 25 |
| [`spring-test-slices/`](spring-test-slices) | Spring Boot 4 Test Slices: @WebMvcTest, @JsonTest, @RestClientTest and @DataJpaTest Compared | Spring Boot 4.1.2, JDK 25 |
| [`contracts/`](contracts) | Consumer-Driven Contract Testing: Spring Cloud Contract vs Pact for Spring Boot | Spring Boot 4.2.0, Spring Cloud Contract 5.0.3, Stubborn Contract 0.2.4, Pact JVM 4.7.7, JDK 25 |
Every module keeps the real output of its tests in `output/`. Each test writes the transcript and asserts the same facts, so the numbers in the posts fail the build if they stop being true.
@@ -18,4 +19,5 @@ cd mockito && ./scripts/run-all.sh
cd ../junit-6-migration && ./scripts/run-all.sh
cd ../assertj && ./scripts/run-all.sh
cd ../spring-test-slices && ./scripts/run-all.sh
cd ../contracts && ./scripts/run-all.sh
```