Hackathon Hack:
TDD Grade Feedback Loop
for SGSN
Alexander WingÄrd
What do we have?
- 25000 test cases
- 36000 mocks
- 1500000 lines of BT-erl
ALOT!
What is TDD grade?
TDD grade is when it's feasible to run the tests after each line is modified during development.
This implies:
- Subsecond performance
- Clean output
Tests as the IDE
Having the code compiled each save is huge.
Having it executed is a great benefit in dynamically typed languages.
Being able to jump directly to errors.
Code Coverage is a tool not a measurment
Mocks are a dependency
- One of the great benefits of using TDD is driving the design to not be cluttered with dependencies.
- Having a mocking framework is counterproductive.
Demo Time
Let's introduce a division by zero in a BT-erl suite and a Eunit suite and see what happens.
Movie time!
First running BT-erl...
Now mine...
Fin.