Testing is Fun @Confoo.ca 2012

1,374 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
1,374
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Testing is Fun @Confoo.ca 2012

  1. 1. Testing is fun A developers perspective
  2. 2. blogger: http://gouravtiwari.blogspot.com github: http://github.com/gouravtiwari21 email: gouravtiwari21@gmail.com g.tiwari@tcs.com twitter: @gouravtiwari21
  3. 3. 1. Why something is fun?2. Unit, functional and Acceptance testing – fun with Ruby on Rails3. Quality Tests
  4. 4. Testers Vs. Developers: Code War
  5. 5. Testers + Developers = Quality Product
  6. 6. Fun is like beauty - its in the eyes of the beholder
  7. 7. Why something is fun?
  8. 8. 1. Why something is fun? Problem solving Pattern recognition Creativity and lateral thinking
  9. 9. 1. Why something is fun? My Nephews and Nieces
  10. 10. 1. Why something is fun?Why a kid hate something? Feeling of burden and boredom Patience test Tough to do
  11. 11. 1. Why something is fun?Why a kid like something? Curiosity and involvement Sense of accomplishment Easy to do and easy to iterate
  12. 12. 1. Why something is fun? My Perspective
  13. 13. 1. Why something is fun?No, testing is not fun,WHEN This works on my development box! Workbench-mess Slow Tests
  14. 14. 1. Why something is fun?Yes, I want to do itWHEN Use right tools and right test data Clean Workbench Run tests – every 30 secs!
  15. 15. Unit, functional and Acceptance testing – fun with Ruby on Rails
  16. 16. 2. Unit, functional and Acceptance testing - fun with Ruby on Rails (Development + Testing) Approach ?Bottom-up (Inside-out) Top-down (Outside-in)
  17. 17. 2. Unit, functional and Acceptance testing - fun with Ruby on RailsCucumber & RSpec Outside-in approach Only write what is meaningful Close interaction of PO and developer
  18. 18. 2. Unit, functional and Acceptance testing - fun with Ruby on Rails BDD ATDD TDD BA/PO Developer
  19. 19. 2. Unit, functional and Acceptance testing - fun with Ruby on Rails Cucumber example
  20. 20. 2. Unit, functional and Acceptance testing - fun with Ruby on Rails Outside-in Scenario View Controller Step 1 Step 3 Step 4 Steps Model Step 2 Step 5Given Pre-requisite… (masked data, mock, Stub) …When… Action (invoke method)Then …… Validate output …
  21. 21. 2. Unit, functional and Acceptance testing - fun with Ruby on Rails Tests with guard
  22. 22. Courtesy: https://github.com/visionmedia/git-extras
  23. 23. Patience test with cucumber 100 tests & 1 sprint … a trivial example
  24. 24. Quality tests
  25. 25. Team testing time With friends and family
  26. 26. 3. Quality tests Metric Fu
  27. 27. 3. Quality tests Reek
  28. 28. 3. Quality tests Rcov
  29. 29. 3. Quality tests Flog
  30. 30. Easy to understand and easy tofollow steps are funWith checks on code and codequality, developer can havesound sleepATDD, TDD andBDD, DDD, anyother DD :just conceptsdevelopment and testingtogether is fun!
  31. 31. https://joind.in/6023
  32. 32. https://github.com/cucumber/cucumber/wiki/http://www.thewebsqueeze.com/web-design-articles/the-mac-ruby-developers-toolkit-25-essential-apps.htmlhttp://rspec.info/http://guides.rubyonrails.org/testing.htmlhttp://metric-fu.rubyforge.org/http://www.julianhermida.com/algoma/scotlteachingresourcesfeedback.htm

×