Tips for running a code Kata

Code katas such as the classic bowling game kata by uncle bob are a good way of fostering TDD best practice in your team. Here, in no particular order, are a few hints for running them I have picked up over the last few months. Start with a subject that everyone knows. For example with the bowling game don’t assume that everyone knows how to play and how to score the game....

February 14, 2016 · 3 min · 467 words · Alastair Crabtree

What type of test is that?

Tests help you ensure your code works, but they come in several shapes and sizes. Here are the four key ones I use, and how to spot the difference. Unit tests AKA: TDD, fast tests, “tests” Usually written by: Developers Time to run one: few ms Time to run suite: few secs - 3m Component under test: one or more related classes/types usually in the same module. Success: You have hundreds of quick running tests that cover 80% of application code....

February 2, 2016 · 2 min · 410 words · Alastair Crabtree