Test-Driven Development with Plone

1,597 views
1,409 views

Published on

This talk is about how to apply the principles of test-driven development to Plone.

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,597
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
13
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Test-Driven Development with Plone

  1. 1. Test-Driven Development with Plone Plone Conference Arnhem 2012 Timo Stollenwerk
  2. 2. Testing ???
  3. 3. Do not break things! Timo Stollenwerk
  4. 4. What do we get?● Code that works● Proof that is works● Lower defect rate● Cheaper bug fixing
  5. 5. Test-Driven Development
  6. 6. Test-Driven Development
  7. 7. Test-Driven Development
  8. 8. Test-Driven Development
  9. 9. What do we get?● Shorter development cycles● Fast development process● Satisfaction● Fun!
  10. 10. No code without a failing test
  11. 11. Make test pass (quickly)
  12. 12. Test
  13. 13. Fix
  14. 14. Refactor
  15. 15. What do we get?● Clean Code that works● Agile code
  16. 16. Testing in Plone
  17. 17. Testing Pyramid
  18. 18. Integration Test: Dexterity Type● Schema● FTI● Factory● Adding● View
  19. 19. Unit Testing
  20. 20. Mocking
  21. 21. Functional Testing
  22. 22. Functional Tests● „Second line of test defense.“ (Martin Fowler)● Testable specification● Failure in a functional test > missing unit test
  23. 23. Robot Framework Acceptance Tests
  24. 24. Robot Framework Acceptance Tests
  25. 25. There is more...
  26. 26. Book Recommendations
  27. 27. Questions? http://github.com/tisto/example.tdd
  28. 28. Test-Driven Development with Plone Timo Stollenwerk contact@timostollenwerk.net twitter: @timostollenwerk irc: tisto

×