~/talk

Mutation Testing

Talkat Developer Summit 2020 · 2020-11-21..11-22· [testing, java]
links:none on file
slides:none on file

Java + JUnit + JaCoCo example implements a simple palindrome function, reaches 100% JaCoCo coverage only after adding a partial-palindrome test, then runs mutation testing with Pit via Maven which modifies bytecode in memory and re-runs only the affected tests. Pit generates 9 mutants, initially 9 mutations, 8 killed -> 9/9 killed after adding a two-character test to cover the boundary (less than two), and the project + report live on GitHub.

AI-written summary · about

  1. 0:00Introduction to mutation testing
  2. 3:23How mutation testing works
  3. 10:26Demo with palindrome function
  4. 25:50Evaluating test quality
  5. 29:46Running Pitest on code
  6. 37:03Best practices and limitations
  7. 41:58Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.