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

2016 java-sig-mutation-testing

Editor's Notes

  • #3 https://upload.wikimedia.org/wikipedia/commons/thumb/8/83/Menora.svg/2000px-Menora.svg.png http://res.freestockphotos.biz/pictures/12/12628-illustration-of-a-decorated-christmas-tree-pv.png https://upload.wikimedia.org/wikipedia/commons/thumb/d/d8/Kwanzaa_Candles-Kinara.svg/2000px-Kwanzaa_Candles-Kinara.svg.png https://upload.wikimedia.org/wikipedia/commons/thumb/5/53/Happy_Festivus.jpg/320px-Happy_Festivus.jpg
  • #4 https://cdn.pixabay.com/photo/2012/05/07/05/18/bug-48020_1280.png https://pixabay.com/p-303966/?no_redirect
  • #5 http://www.eclemma.org/jacoco/trunk/coverage/
  • #6 https://pixabay.com/p-149251/?no_redirect
  • #8 https://pixabay.com/p-1300226/?no_redirect
  • #10 http://www.publicdomainpictures.net/pictures/180000/velka/mutant-female-41.jpg
  • #11 http://orig01.deviantart.net/920f/f/2015/013/a/8/teenage_mutant_ninja_turtles__2003__drawing__by_n0rvv3g14n_g1rl-d8drynd.jpg