Antoine Vernois – Unit Test, Test First and TDD
More and more developers are writing unit test. And that’s really great.
They are a great way to ensure code’s correctness. But writing test after is often difficult : code may not be testable, “it works, why bother with test. Let’s do real stuff !”,…
Testing first could be a solution to those problems. TDD goes further. Unit tests do not only test the code, they become a tool to design a better, cleaner and safer code.
A short introduction of what are/are not unit tests and test first strategy.
Live code of a simple kata using test first.
Short introduction to TDD (the red/green/refactor loop)
Live code of the same kata, tdd style.
What will you learn?
What are unit test, test first strategy and TDD. I’ll discover that TDD is not about test, but about writing well the right code.
Be interested to write clean code.
TDD by example, Kent Beck.
attend coding dojos and/or coderetreats
practice, practice, practice…
Do the attendees need a laptop?