See the Course Notes for guidance on getting the most from the course, basic information about TDD, and definitions of jargon terms.
Examples for coding various unit/microtests using JUnit, Mockito, and JQwik. Notes
Starter code for an exercise to use TDD for greenfield development.
Starter code for an exercise to use TDD for greenfield development.
Starter code for an exercise to use TDD to approach modifications to existing code.
Run from the module subdirectory.
cd [project-root]
cd tdd-samples
./gradlew ...
./gradlew test
[project-root]/tdd-java-ps/tdd-samples/build/reports/tests/test/index.html
./gradlew integrationTest
[project-root]/tdd-java-ps/tdd-samples/build/reports/tests/integrationTest/index.html
./gradlew jacocoTestCoverageVerification
[project-root]/tdd-java-ps/tdd-samples/build/jacocoHtml/index.html
./gradlew jacocoIntegrationTestReport
[project-root]/tdd-java-ps/tdd-samples/build/reports/jacoco/jacocoIntegrationTestReport/html/index.html
Thanks to Ted M. Young (@jitterted@sfba.social), Jay Bazuzi (@JayBazuzi@mastodon.online), and Glenn Waters (@gwww@mastodon.social) for suggestions to improve the Course Notes.
Thanks to Emily Bache (emilybache@sw-development-is.social) for her great work on the Gilded Rose kata.