Your SlideShare is downloading. ×
Unit testing for the TYPO3 4.x core
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Unit testing for the TYPO3 4.x core

2,309

Published on

Published in: Technology
2 Comments
2 Likes
Statistics
Notes
No Downloads
Views
Total Views
2,309
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
2
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
































































































  • Transcript

    • 1. Unit testing for the TYPO3 4.x core
    • 2. Brush-up on unit testing What has happened so far? How you can use it now How TYPO3 will benefit
    • 3. Brush-up on unit testing What has happened so far? How you can use it now How TYPO3 will benefit
    • 4. Have you already unit-tested today?
    • 5. Have you already unit-tested today?
    • 6. Manual testing is cumbersome
    • 7. Automated testing is fast
    • 8. Unit tests for the Seminar Manager extension
    • 9. More than 2400 tests
    • 10. Less than 90 seconds
    • 11. (or 3 minutes on my laptop)
    • 12. Verify your code with unit tests
    • 13. Catch regressions
    • 14. Create a safety net for refactoring
    • 15. Brush-up on unit testing What has happened so far? How you can use it now How TYPO3 will benefit
    • 16. The PHPUnit extension now can run tests for the Core
    • 17. The PHPUnit extension now can run tests for the Core (I‘ll show you)
    • 18. Survey in the dev newsgroup
    • 19. Survey in the dev newsgroup tslib_TCEmain tslib_content t3lib_div t3lib_TStemplate 0 1 2 3 4 5 6
    • 20. t3lib_TCEmain needs it badly „t3lib_TCEmain, t3lib_refindex, t3lib_BEfunc The first one should keep you busy for a month :D“ (post by Dmitry)
    • 21. Proof-of-concept unit tests for TCEmain
    • 22. More tests have been added
    • 23. More tests have been added t3lib_cache_backend_* t3lib_div t3lib_cache_Manager t3lib_cache_frontend_* t3lib_extmgm
    • 24. Brush-up on unit testing What has happened so far? How you can use it now How TYPO3 will benefit
    • 25. Write unit tests to learn how some parts of the core work
    • 26. Write unit tests to learn how some parts of the core work
    • 27. Write unit tests to learn how some parts of the core work Let‘s do it!
    • 28. Write unit tests before you fix a bug
    • 29. Make sure your changes don‘t break anything
    • 30. Before refactoring, write tests for the affected code
    • 31. Brush-up on unit testing What has happened so far? How you can use it now How TYPO3 will benefit
    • 32. Diploma thesis at the University of Bonn „Unit testing as a way to detect design flaws and hidden bugs in existing TYPO3 code“ Planned total time: 6 months
    • 33. TCEmain will get more tests
    • 34. TCEmain will get more tests Time planned for writing unit tests:
    • 35. TCEmain will get more tests Time planned for writing unit tests: 2 months
    • 36. More knowledge on bad smells in the code
    • 37. Too many dependencies
    • 38. Too many direct API calls
    • 39. Too many direct API calls
    • 40. Monster methods
    • 41. Read more on this
    • 42. More knowledge on Bugs that slip past manual testing (but can be found with unit tests)
    • 43. More knowledge on bugs in lower levels (because you are testing in the GUI)
    • 44. More knowledge on remote regressions
    • 45. More knowledge on masked regressions
    • 46. More knowledge on extreme cases
    • 47. More knowledge on extreme cases testing with 1000 000 records
    • 48. Writing unit tests is a lot of work. (Tell me something new.)
    • 49. Rules for PHPCodeSniffer for finding these bugs and smells quicker
    • 50. Brush-up on unit testing What has happened so far? How you can use it now How TYPO3 will benefit
    • 51. Questions?
    • 52. Thank you.

    ×