Repository navigation
2019 TCR
Reading:
- Kent Beck's introduction: https://medium.com/@kentbeck_7670/test-commit-revert-870bbd756864
- Some more thinking by Thomas Deniffel: https://medium.com/@tdeniffel/test-commit-revert-questions-answered-ddf012a1af97
- (please add more reading material here!)
Replace the red -> green -> refactor cycle with the TCR cycle: write test + implementation, if it's green commit and continue, if it's red revert and start again with writing a test.
You are only allowed to run tests through this cycle! Running tests in your IDE without the 'risk' of a revert is considered cheating.
Create a script for your TCR cycle, to make this an atomic action! For gradle + git, it could be something like:
./gradlew test && git commit -am working || git reset --hard
Adapt to your environment as needed.
Test both the commit and revert case before starting, to fix potential issues with your script! Also keep in mind that your IDE might keep files cached in memory.
Alternatively, you can use the Limited WIP IntelliJ plugin: https://plugins.jetbrains.com/plugin/7655-limited-wip
- Really forced to follow baby-steps approach: over time, it feels like the
tcrcommand would become the equivalent of "running the tests", so I'd be forced to only make small changes I'm confident about. - Wondering how one handles commit history
- setup took a bit of time - a starting point, for next time I get round to doing this, would probably help get more done in 1h.
Make sure everyone gets into the loop as soon as possible! This means that Game of Life might be too hard an exercise to get started. It might be better to use a TDD kata like the bowling game kata?
- Home
- Code of Conduct: rules on how to make this an inclusive event
- COVID-Precautions: Precautions and monitoring of room ventilation
- Schedule
- Venue Map
- Menu
- whoami: Attending? Feel free to introduce yourself.
- Session Incubation: come up with cool ideas for the conference
- Lightning Talks: get your point across in five minutes or less
- Evening Events: things to do from 7pm to 9am
- Marketplace: pictures of the current marketplace
- 2026 Sessions: Blog posts, photos and everything else produced during the conference