HOW TESTINGCHANGED MY LIFE Nikolay bachiyski, automatticWordcamp san francisco, aug 13, 2011
Next30 minutes
0. what?
1. example   plugin
2. do it yourself!
what?
0. what?Automated    http://www.flickr.com/photos/binaryape/4882162452/
xUnit        0. what?
PHPUnithttp://www.phpunit.de/manual/current/en/                                   0. what?
class  WP_Is_Email_Test  extends  WP_UnitTestCase  {        function  test_is_email_only_letters_with_dot_com_domain()  { ...
class  WP_Is_Email_Test  extends  WP_UnitTestCase  {        function  test_is_email_only_letters_with_dot_com_domain()  { ...
0. what?
Example Plugin    WP_Bearify
do it yourself!              2. do it yourself!
Grab the      Frameworkhttps://github.com/nb/wordpress-tests            soon in core                               2. do i...
Please, read  http://xunitpatterns.com/      at least Narratives:http://xunitpatterns.com/Book        %20Outline.html     ...
PHPUnithttp://www.phpunit.de/manual/current/en/                                2. do it yourself!
PHPUnit in your         editorhttps://github.com/meritt/phpunit-tmbundle/  https://github.com/klokane/vim-phpunit         ...
FEAR!
FEAR!
http://www.flickr.com/photos/eebrierley/5394195199/
warm & cozy > FEAR
How Testing Changed My Life
How Testing Changed My Life
Upcoming SlideShare
Loading in …5
×

How Testing Changed My Life

3,654
-1

Published on

Reasoning behind automated testing with a WordPress plugin as an example. Very mild exposure to bears.

Published in: Technology, Business
0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,654
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
23
Comments
0
Likes
7
Embeds 0
No embeds

No notes for slide

How Testing Changed My Life

  1. 1. HOW TESTINGCHANGED MY LIFE Nikolay bachiyski, automatticWordcamp san francisco, aug 13, 2011
  2. 2. Next30 minutes
  3. 3. 0. what?
  4. 4. 1. example plugin
  5. 5. 2. do it yourself!
  6. 6. what?
  7. 7. 0. what?Automated http://www.flickr.com/photos/binaryape/4882162452/
  8. 8. xUnit 0. what?
  9. 9. PHPUnithttp://www.phpunit.de/manual/current/en/ 0. what?
  10. 10. class  WP_Is_Email_Test  extends  WP_UnitTestCase  {        function  test_is_email_only_letters_with_dot_com_domain()  {                $this-­‐>assertEquals(  nb@nikolay.com,  is_email(  nb@nikolay.com  )  );        }                function  test_is_email_should_not_allow_missing_tld()  {                $this-­‐>assertFalse(  is_email(  nb@nikolay  )  );        }                function  test_is_email_should_allow_bg_domain()  {                $this-­‐>assertEquals(  nb@nikolay.bg,  is_email(  nb@nikolay.bg  )  );        }} 0. what?
  11. 11. class  WP_Is_Email_Test  extends  WP_UnitTestCase  {        function  test_is_email_only_letters_with_dot_com_domain()  {                $this-­‐>assertEquals(  nb@nikolay.com,  is_email(  nb@nikolay.com  )  );        }                function  test_is_email_should_not_allow_missing_tld()  {                $this-­‐>assertFalse(  is_email(  nb@nikolay  )  );        }                function  test_is_email_should_allow_bg_domain()  {                $this-­‐>assertEquals(  nb@nikolay.bg,  is_email(  nb@nikolay.bg  )  );        }} 0. what?
  12. 12. 0. what?
  13. 13. Example Plugin WP_Bearify
  14. 14. do it yourself! 2. do it yourself!
  15. 15. Grab the Frameworkhttps://github.com/nb/wordpress-tests soon in core 2. do it yourself!
  16. 16. Please, read http://xunitpatterns.com/ at least Narratives:http://xunitpatterns.com/Book %20Outline.html 2. do it yourself!
  17. 17. PHPUnithttp://www.phpunit.de/manual/current/en/ 2. do it yourself!
  18. 18. PHPUnit in your editorhttps://github.com/meritt/phpunit-tmbundle/ https://github.com/klokane/vim-phpunit 2. do it yourself!
  19. 19. FEAR!
  20. 20. FEAR!
  21. 21. http://www.flickr.com/photos/eebrierley/5394195199/
  22. 22. warm & cozy > FEAR

×