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.

2016 java-sig-mutation-testing

407 views

Published on

Introduction to Mutation Testing using PitClipse and JUnit.

Published in: Technology
  • Be the first to like this

2016 java-sig-mutation-testing

  1. 1. Intro to Mutation Testing slideshare.net/boyarsky Twitter @jeanneboyarsky Blog: http://www.selikoff.net Jeanne Boyarsky NY Java SIG 12/5/16
  2. 2. @jeanneboyarsky Pause for a Commercial
  3. 3. Why write tests? @jeanneboyarsky It used to work!
  4. 4. How know if tests are good? @jeanneboyarsky
  5. 5. If test coverage low @jeanneboyarsky Write more tests! Not ready for mutation testing of class
  6. 6. If test coverage high @jeanneboyarsky All done! Perfect code!
  7. 7. Or is it?Why is it saying nobody is registered?
  8. 8. Code Review!
  9. 9. That’s a mutant!
  10. 10. Too many mutants! They’re everywhere!
  11. 11. PitClipse to the rescue!
  12. 12. Easy to run
  13. 13. The console flies by
  14. 14. We caught 5 mutants
  15. 15. More detail
  16. 16. The mutants live….
  17. 17. Level up
  18. 18. Now 32 survived
  19. 19. Demo
  20. 20. Tips • JUnit tests must pass • Watch console to see if still running • Reports on whole project • Fixing one may take care of more @jeanneboyarsky

×