Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Test-Driven Development with Plone

2,299 views

Published on

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

Published in: Technology
  • Be the first to comment

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

×