Skip to content

Commit

Permalink
Adding rules for TDD.
Browse files Browse the repository at this point in the history
  • Loading branch information
algogrit committed Jul 18, 2019
1 parent 41469f0 commit 144206e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code-samples/04-tdd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

Refer Kata Catalog: https://github.com/AgarwalConsulting/kata-catalog/blob/master/katas/String%20Calculator.md


### Create an empty maven project

```
Expand All @@ -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

0 comments on commit 144206e

Please sign in to comment.