You already know TDD, your code coverage is almost at 80%, jUnit has no secret for you? But you feel that you could do more with your tests, the tools you use have limitations. Or maybe you're just tired of assertEquals?
Don't panic! We will see how you can code tests. We will look upon:
- Mutation Testing
- BDD, Behaviour Driven Development
- Property Testing
38. Coverage
data
Equivalent
mutant
if(index
>=
10)
break
and
if(index
==
10)
break
Selec1ve
muta1on
Parallel
execu1on
Choose
your
mutants
wisely
Using
code
coverage
to
reduce
the
tests
to
run
Speed-‐up
The
right
tool