neopragma / tdd-java-ps

Code for TDD Java training

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TDD Java Training

See the Course Notes for guidance on getting the most from the course, basic information about TDD, and definitions of jargon terms.

Module tdd-samples

Examples for coding various unit/microtests using JUnit, Mockito, and JQwik. Notes

Module tdd-fizzbuzz

Starter code for an exercise to use TDD for greenfield development.

Notes.

Examples.

Module tdd-rpn

Starter code for an exercise to use TDD for greenfield development.

Notes.

Module tdd-gildedrose

Starter code for an exercise to use TDD to approach modifications to existing code.

Notes.

Gradle command line execution

Run from the module subdirectory.

cd [project-root]
cd tdd-samples 
./gradlew ...

Run unit tests

./gradlew test

Unit test results

[project-root]/tdd-java-ps/tdd-samples/build/reports/tests/test/index.html

Run integration tests

./gradlew integrationTest

Integration test results

[project-root]/tdd-java-ps/tdd-samples/build/reports/tests/integrationTest/index.html

Check unit test coverage

./gradlew jacocoTestCoverageVerification

Unit test coverage report

[project-root]/tdd-java-ps/tdd-samples/build/jacocoHtml/index.html

Run Jacoco report

./gradlew jacocoIntegrationTestReport

Jacoco test report

[project-root]/tdd-java-ps/tdd-samples/build/reports/jacoco/jacocoIntegrationTestReport/html/index.html

Acknowledgements

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.

About

Code for TDD Java training


Languages

Language:Java 49.4%Language:HTML 28.1%Language:JavaScript 13.1%Language:CSS 9.4%