TestDrivenDevelopment.php Dominik Jungowski, inovex GmbH Jakob Ketterl, Süddeutsche Zeitung Digitale Medien GmbH
Jul 06, 2015
TestDrivenDevelopment.phpDominik Jungowski, inovex GmbH
Jakob Ketterl, Süddeutsche Zeitung Digitale Medien GmbH
§1You may not write production code until you have written a failing unit
test.
Quelle: Professionalism and Test-Driven Development, Robert C. Martin
§2You may not write more of a unit test
than is sufficient to fail, and not compiling is failing.
Quelle: Professionalism and Test-Driven Development, Robert C. Martin
§3You may not write more production code than is sufficient to pass the
currently failing test.
Quelle: Professionalism and Test-Driven Development, Robert C. Martin
$3.61/LOC
Technical Debt
Quelle: http://www.castsoftware.com/research-labs/technical-debt-estimation
Qualität
Freude am!Refactoring
© Wikimedia
Tests = Doku
Red
GreenRefactor
The TDD Cycle
Bowling Game Coding KataRegeln!
Punktzahl Startwert: 0
Ein Wurf erhöht die Punktzahl um die Anzahl der umgefallenen Pins
Ein Haus besteht aus maximal 2 Würfen
In einem Haus können maximal 10 Pins umfallen
Bei einem Spare zählt der nächste Wurf als Bonus zum aktuellen Haus
Bei einem Strike zählen die nächsten beiden Würfe als Bonus zum aktuellen Haus
…
Bowling Game Coding Kata
http://content.codersdojo.org/ code-kata-catalogue/bowling-game/
© Pixabay / OpenClips
Mocking
Lvl 90 Testing
BDD Continuous Integration
Contract
TestsIntegrationstests
1st