Upload
plone-foundation
View
992
Download
2
Embed Size (px)
DESCRIPTION
This talk is about how to apply the principles of test-driven development to Plone.
Citation preview
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
AcceptanceTests
Robot Framework
AcceptanceTests
There is more...
Book Recommendations
Questions?
http://github.com/tisto/example.tdd