← Graph

Can Mutant guide refactoring?

question 2 connections

Audience asks if Mutant can be used beyond regression detection to identify code that should be refactored. Schirp: yes. On an unfamiliar class, run Mutant without caring about kills and look at the reduction-operator output to see valid transformations — the first refactor commit can delete the ones with no proof of value. Also useful on tangled code like a 20-arm case statement: pin the mess to pass Mutant from a single public interface first, then you are free to refactor internals while keeping coverage constant.

answer_summary
Yes — run Mutant without killing tests to discover valid transformations, and pin behaviour from a public interface before refactoring tangled internals.
question Can Mutant guide refactoring?
about
Mutant tool
Question about using Mutant as a refactoring aid.
question Can Mutant guide refactoring?
asked_at
Audience question during the Q&A.

Provenance

Read by
2 extractions