Skip to content

Commit fdb9030

Browse files
committed
mutation testing
1 parent 40e856b commit fdb9030

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

310 KB
Loading

presentation/slides.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,38 @@ h1:
271271
layout: default-aside
272272
---
273273

274+
# Mutation Testing
275+
## Test what your code coverage % is worth
276+
277+
<v-clicks>
278+
279+
- **Mutate** — Automatically inject bugs into your code
280+
- **Test** — Run your test suite against mutants
281+
- **Survive?** — If tests pass, they're weak
282+
- **Killed?** — Your tests caught the bug
283+
284+
</v-clicks>
285+
286+
<div v-click class="mt-8">
287+
288+
Tools: **Stryker** (JS/TS), **PITest** (Java), **Stryker.NET** (C#)
289+
290+
</div>
291+
292+
::image::
293+
294+
![](./images/mutation-testing.png)
295+
296+
<!--
297+
Mutation testing validates test quality, not just coverage. A mutant "survives" if your tests don't catch the injected bug.
298+
Common mutations: change > to >=, replace + with -, remove method calls, change true to false.
299+
High mutation score = tests actually verify behavior. 100% coverage with 50% mutation score = weak tests.
300+
-->
301+
302+
---
303+
layout: default-aside
304+
---
305+
274306
# But What?
275307

276308
<v-clicks>

0 commit comments

Comments
 (0)