Test-Driven Development with Plone
                 Plone Conference Arnhem 2012
                             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 in Plone
Testing Pyramid
Integration Test: Dexterity Type

●
    Schema
●
    FTI
●
    Factory
●
    Adding
●
    View
Unit Testing
Mocking
Functional Testing
Functional Tests

●
    „Second line of test
    defense.“ (Martin
    Fowler)
●
    Testable specification
●
    Failure in a
    functional test >
    missing unit test
Robot Framework
                  Acceptance
                     Tests
Robot Framework
                  Acceptance
                     Tests
There is more...
Book Recommendations
Questions?


  http://github.com/tisto/example.tdd
Test-Driven Development with Plone
                    Timo Stollenwerk
                    contact@timostollenwerk.net
                    twitter: @timostollenwerk
                    irc: tisto

Test-Driven Development with Plone