Einführung Test-driven Development

Preview:

Citation preview

Test-Driven DevelopmentPython Barcamp – April 2013

Timo Stollenwerk

Testing ???

Do not break things!

Timo Stollenwerk

What do we get?

● Code that works● Proof that is works● Lower defect rate● Cheaper bug fixing

Test-Driven Development

Test-Driven Development

Test-Driven Development

Test-Driven Development

What do we get?

● Shorter development cycles

● Fast development process

● Satisfaction● Fun!

No code without a failing test

Make test pass (quickly)

Test

Fix

Refactor

What do we get?

● Clean Code that works

● Agile code

Testing Pyramid

Unit Testing

Integration Tests

● Schema● Factory Type Info● Factory● Adding● View

Functional Testing

Functional Tests

● „Second line of test defense.“ (Martin Fowler)

● Testable specification● Failure in a

functional test > missing unit test

Book Recommendations

Test-Driven Development

contact@timostollenwerk.nettwitter: @timostollenwerkirc: tisto

Timo Stollenwerk