https://github.com/bloomberg/tdd-labs
Problems and Solutions for Test-Driven-Development training
https://github.com/bloomberg/tdd-labs
Last synced: about 1 year ago
JSON representation
Problems and Solutions for Test-Driven-Development training
- Host: GitHub
- URL: https://github.com/bloomberg/tdd-labs
- Owner: bloomberg
- License: apache-2.0
- Created: 2020-10-13T19:22:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T23:05:23.000Z (about 3 years ago)
- Last Synced: 2025-04-19T23:31:58.906Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.65 MB
- Stars: 9
- Watchers: 3
- Forks: 5
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TDD Labs
Problems and solutions for TDD labs.
## Labs
Currently we have the following labs:
* [test-leapyear](leap-year/README.md) - Leap Year
* [test-income-tax](income-tax/README.md) - Income tax calculator
# How To Test-Drive
* Develop iteratively
* Follow the TDD cycle of __RED, GREEN, REFACTOR__
- __RED__ - Think of one simple example of how the system should be used
- __GREEN__ - Add just enough code to make the test pass
- __REFACTOR__ - Make the system code as well as tests easier to change.
* If working in a group or pairs, it's common for _each participant to do a full TDD cycle, rotating after a failing test_ has been written.