Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Custodes Mutantur: The short term effect of mutation testing on software maintainability - a case study
Blekinge Institute of Technology, Faculty of Computing, Department of Computer Science.
2025 (English)Independent thesis Basic level (university diploma), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Mutation testing is a technique for evaluating test effectiveness by introducing small faults into the code and measuring whether the test suite detects them. This thesis explores whether applying mutation testing in a targeted way has a measurable short-term impact on software maintainability and code quality. A case study was conducted in an industrial TypeScript codebase, where randomly selected files were subjected to thorough unit testing aimed at maximizing mutation scores. Maintainability metrics such as Maintainability Index, Halstead Metrics, and Cyclomatic Complexity were tracked before and after the intervention.

The results showed modest improvements in several metrics, including a statistically significant correlation between increases in mutation score and maintainability index when outliers were excluded. However, no defects were uncovered, and many of the changes observed were not found to be statistically significant. While mutation testing did not result in dramatic short-term gains, it surfaced useful refactoring opportunities and reinforced earlier findings that mutation-guided testing can enhance code structure and testability. The study concludes that mutation testing holds value beyond metrics as a catalyst for cleaner, more maintainable code.

Place, publisher, year, edition, pages
2025. , p. 37
Keywords [en]
mutation testing, software maintainability, maintainability index, halstead metrics, case study, unit testing, code maintainability
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:bth-27991OAI: oai:DiVA.org:bth-27991DiVA, id: diva2:1979329
External cooperation
Careium
Subject / course
PA1438 Självständigt arbete Webbprogrammering
Educational program
PAGWG Webbprogrammering
Supervisors
Examiners
Available from: 2025-07-02 Created: 2025-06-30 Last updated: 2025-09-30Bibliographically approved

Open Access in DiVA

Custodes Mutantur - Vilhelm Malmberg Eskilsson 2025(461 kB)59 downloads
File information
File name FULLTEXT01.pdfFile size 461 kBChecksum SHA-512
a3f78c3486c74a253bafe43d772e23e5f5e2abe377bf4d9085487a13b885f1902766d3e29a59355c5597abb9757097bf67db323b6af4bc4f67187e810897e7f7
Type fulltextMimetype application/pdf

By organisation
Department of Computer Science
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 59 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 201 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf