Mutation testing: Who tests the testers?

Mutation testing is an advanced software testing technique. Imagine altering a '<' to '>' in your code; ideally, your unit tests should catch this. But do they? This walkthrough will explore the principles of mutation testing, demonstrating how it can uncover hidden weaknesses within supposedly robust test suites. Using the third-party Python package Mutmut, I will illustrate common pitfalls in unit testing and show how mutation testing can expose these effectively. These examples will cover some simple examples and then go on some examples found in code bases. I will also show how mutation testing can be used as a teaching tool for better testing, including how it can highlight edge cases in unit tests. A recording of this session is available on YouTube: https://youtu.be/uoxT2pRenQs

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2024-12-06
DOI
https://doi.org/10.5281/zenodo.14290291
Primary Topic
Natural Antidiabetic Agents Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Mutation testing: Who tests the testers?

Zenodo (CERN European Organization for Nuclear Research)
Natural Antidiabetic Agents Studies
article

Mutation testing: Who tests the testers?

article en

Abstract

Mutation testing is an advanced software testing technique. Imagine altering a '<' to '>' in your code; ideally, your unit tests should catch this. But do they? This walkthrough will explore the principles of mutation testing, demonstrating how it can uncover hidden weaknesses within supposedly robust test suites. Using the third-party Python package Mutmut, I will illustrate common pitfalls in unit testing and show how mutation testing can expose these effectively. These examples will cover some simple examples and then go on some examples found in code bases. I will also show how mutation testing can be used as a teaching tool for better testing, including how it can highlight edge cases in unit tests. A recording of this session is available on YouTube: https://youtu.be/uoxT2pRenQs

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 51%
Natural Antidiabetic Agents Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.