A clean code exercise:
- covers test drive driven principles: traffic light principles
- covers Behaviour Driven Development: Gherkin usage
- takles down test coverage principles againt software complexity (NPath metrics).
A few refactoring techniques in the code refactoring step are illustratted....
| Step | Intent | How |
|---|---|---|
| 0 | BDD bootstrapped: 1 scenario + interface | Init |
| 1 | Write complete test scenarios | |
| 2 | Empty Intersection implementation | |
| 3 | Invert after before in time Interval for preparing refactoring | |
| 4 | Introduce variables to allow extract method | Extract Variables |
| 5 | Extract method | Extract method |
| 6 | Inline Variable | Inline Variable% |