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.
Trisha Gee (@trisha_gee)
Developer & Technical Advocate, JetBrains
Level Up Your
Automated Tests
Using <Technology X> Will Fix
Your Problems
•Write Tests?
•Write Readable Tests?
•Write Meaningful Tests?
How can we:
Why Don’t We Write Tests?
What Are Tests For?
What Are Tests Actually Good
For?
How Can We Change Attitudes?
How Can We Change Behaviour?
Having a Champion
Quality becomes a habit
This can only get you so far
Remaining Problems
It needs to be easy
Possible Solutions
•EasyMock / Mockito / JMock
•Home-grown mocking / stubbing
•Hamcrest matchers
•DSL – Domain Specific La...
Along came Spock
An Example Test
How it fixes our problems
Hard to read
Horrible Test Names
Lots of setup
No Unit Tests
Too many similar tests
Testing too many things
Testing too many things
Complicated Matrix
Proving itself
Remaining Issues
Still more to be done
a) write tests?
How can we:
b) write readable tests?
How can we:
c) write meaningful tests?
How can we:
Conclusions
Make it easy
Automate everything
Zero tolerance for failures
Have a champion
Let it go
Pairing or code review
Focus on the purposes of testing
http://bit.ly/LevelUpTests
Questions?
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Level Up Your Automated Tests
Upcoming SlideShare
Loading in …5
×

Level Up Your Automated Tests

Presented at SwanseaCon 2015 - A case study of how to create a culture of quality in a development team

  • Login to see the comments

Level Up Your Automated Tests

  1. 1. Trisha Gee (@trisha_gee) Developer & Technical Advocate, JetBrains Level Up Your Automated Tests
  2. 2. Using <Technology X> Will Fix Your Problems
  3. 3. •Write Tests? •Write Readable Tests? •Write Meaningful Tests? How can we:
  4. 4. Why Don’t We Write Tests?
  5. 5. What Are Tests For?
  6. 6. What Are Tests Actually Good For?
  7. 7. How Can We Change Attitudes?
  8. 8. How Can We Change Behaviour?
  9. 9. Having a Champion
  10. 10. Quality becomes a habit
  11. 11. This can only get you so far
  12. 12. Remaining Problems
  13. 13. It needs to be easy
  14. 14. Possible Solutions •EasyMock / Mockito / JMock •Home-grown mocking / stubbing •Hamcrest matchers •DSL – Domain Specific Language •Standards / Examples
  15. 15. Along came Spock
  16. 16. An Example Test
  17. 17. How it fixes our problems
  18. 18. Hard to read
  19. 19. Horrible Test Names
  20. 20. Lots of setup
  21. 21. No Unit Tests
  22. 22. Too many similar tests
  23. 23. Testing too many things
  24. 24. Testing too many things
  25. 25. Complicated Matrix
  26. 26. Proving itself
  27. 27. Remaining Issues
  28. 28. Still more to be done
  29. 29. a) write tests? How can we:
  30. 30. b) write readable tests? How can we:
  31. 31. c) write meaningful tests? How can we:
  32. 32. Conclusions
  33. 33. Make it easy
  34. 34. Automate everything
  35. 35. Zero tolerance for failures
  36. 36. Have a champion
  37. 37. Let it go
  38. 38. Pairing or code review
  39. 39. Focus on the purposes of testing
  40. 40. http://bit.ly/LevelUpTests Questions?

×