From 144206e4ff04d3689d3f21b247cf1f503e96091e Mon Sep 17 00:00:00 2001 From: Gaurav Agarwal Date: Thu, 18 Jul 2019 12:22:35 +0530 Subject: [PATCH] Adding rules for TDD. --- code-samples/04-tdd/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code-samples/04-tdd/README.md b/code-samples/04-tdd/README.md index b740a77..a8b0c28 100644 --- a/code-samples/04-tdd/README.md +++ b/code-samples/04-tdd/README.md @@ -4,7 +4,6 @@ Refer Kata Catalog: https://github.com/AgarwalConsulting/kata-catalog/blob/master/katas/String%20Calculator.md - ### Create an empty maven project ``` @@ -15,3 +14,10 @@ Refer Kata Catalog: https://github.com/AgarwalConsulting/kata-catalog/blob/maste -DinteractiveMode=false \ -DarchetypeVersion=1.4 ``` + +## Rules + +- Don't write any production (`src/main/...`) code, until you have a corresponding failing test +- For each step in the kata, write a simple test in `src/test/...`, add `assert*` statements to it. +- Run your tests, after you have written the production code +- Refactor