@felix_codes
MUTANTS
“Humans are mutants, everything's a mutant - things
that evolve.”
Oscar Isaac
Slide 92
Slide 92 text
@felix_codes
Slide 93
Slide 93 text
@felix_codes
Mutants simulate human programming
errors
Slide 94
Slide 94 text
@felix_codes
MUTANTS
TYPES OF MUTANTS
Slide 95
Slide 95 text
@felix_codes
MUTANTS
TYPES OF MUTANTS
Value mutation
Slide 96
Slide 96 text
@felix_codes
MUTANTS
TYPES OF MUTANTS
Value mutation
Operator mutation
Slide 97
Slide 97 text
@felix_codes
MUTANTS
TYPES OF MUTANTS
Value mutation
Operator mutation
Statement mutation
Slide 98
Slide 98 text
@felix_codes
MUTANTS
TYPES OF MUTANTS
Value mutation
Operator mutation
Statement mutation
int a = 12 int a = 15
Slide 99
Slide 99 text
@felix_codes
MUTANTS
TYPES OF MUTANTS
Value mutation
Operator mutation
Statement mutation
a++; a++;
a++;
int a = 12 int a = 15
Slide 100
Slide 100 text
@felix_codes
MUTANTS
TYPES OF MUTANTS
Value mutation
Operator mutation
Statement mutation
Slide 101
Slide 101 text
@felix_codes
MUTANTS
TYPES OF MUTANTS
Arithmetic
Relational
Conditional
a + b a - b
while(a < b) while(true)
if(a || b) if (a && b)
Operator mutation
Slide 102
Slide 102 text
@felix_codes
MUTANTS
Slide 103
Slide 103 text
@felix_codes
Mutants simulate human programming
errors
MUTANTS
Slide 104
Slide 104 text
@felix_codes
Mutants simulate errors of competent
programmers
“ ”
MUTANTS
Slide 105
Slide 105 text
@felix_codes
Mutants simulate errors of competent
programmers
if (age > 18) // check if adult
“ ”
MUTANTS
Slide 106
Slide 106 text
@felix_codes
Mutants simulate errors of competent
programmers
if (age > 18) // check if adult
“ ”
MUTANTS
Slide 107
Slide 107 text
@felix_codes
Mutants simulate minor errors of
competent programmers. Major flaws
always arise from minor errors because
of the coupling effect.
“ ”
MUTANTS
Slide 108
Slide 108 text
@felix_codes
MUTANTS
Slide 109
Slide 109 text
@felix_codes
Mutation Testing score
number of mutants killed
total mutants amount
0%
MUTANTS
@felix_codes
WHAT IS MUTATION TESTING
Aaltonen, Kalle & Ihantola, Petri & Seppälä, Otto. (2015); Mutation Testing vs. Code Coverage in automated
assessment
Slide 127
Slide 127 text
@felix_codes
WHAT IS MUTATION TESTING
Aaltonen, Kalle & Ihantola, Petri & Seppälä, Otto. (2015); Mutation Testing vs. Code Coverage in automated
assessment
Slide 128
Slide 128 text
@felix_codes
WHAT IS MUTATION TESTING
Aaltonen, Kalle & Ihantola, Petri & Seppälä, Otto. (2015); Mutation Testing vs. Code Coverage in automated
assessment
Slide 129
Slide 129 text
WITHSTANDING THE EPIDEMIC
Felix Wu - @felix_codes
MUTATION TESTING
Slide 130
Slide 130 text
Felix Wu - @felix_codes
PITest(Java)
Javalanche(Java)
Stryker(JS)
http://bit.ly/flxwu-mutation-testing