word lid!
NLJUG logo

Kill the mutants and test your tests

Locatie Track
Passe-Partout Core
Tijd Moeilijkheidsgraad Taal
14:30:00 - 15:20:00 Beginner Nederlands

Quis custodiet ipsos custodes? Better known as: *Who watches the watchmen?* We are all writing tests, doing TDD, BDD. We measure the quality of the tests with line coverage or (even better) branch coverage. This gives you a false sense of security. I've seen projects with tests which have 100% branch coverage but not a single assertion! This is where mutation testing helps out. By creating broken mutated instances of your codebase (mutants) this should result in failing unit tests. This way we can verify that slight code changes (like real life bugs) actually break your tests. In this talk I'll explain what mutation testing is and how it works. We'll also compare some Java frameworks (PIT, Jester, Jumble) that enable automatic mutation testing in your continuous build and how you can start doing mutation testing *right now*.

Download hier de evaluatie van deze sessie

Bio van Roy van Rijn

Roy van Rijn is a Software Mender at JPoint. He worked on miscellaneous projects and has given talks at JavaOne, Devoxx BE, Devoxx UK, Devoxx PL, Joy of Coding, J-Fall and J-Spring. He regularly gives trainings on various topics, including Spring, Software Architecture, Testing and Agile/Lean. He's also a blogger (http://www.royvanrijn.com) and you can follow him on Twitter (@royvanrijn)