Skip to content

test: add mutation testing with mutmut - #40

Merged
zurfjereluhmie merged 1 commit into
mainfrom
test/mutation-testing
Apr 22, 2026
Merged

test: add mutation testing with mutmut#40
zurfjereluhmie merged 1 commit into
mainfrom
test/mutation-testing

Conversation

@zurfjereluhmie

@zurfjereluhmie zurfjereluhmie commented Apr 22, 2026

Copy link
Copy Markdown
Owner
  • Add mutmut>=3.5 as a dev dependency for mutation testing
  • Configure [tool.mutmut] in pyproject.toml:
    • Targets src/evalwire/ for mutation
    • Excludes __init__.py and cli.py from mutation (no meaningful logic)
    • Excludes hypothesis property tests and integration tests from mutation runs (fork-incompatible / slow)
  • Add make mutate target to run mutation testing
  • Add mutants/ to .gitignore

Usage

# Run mutation testing on the full codebase
make mutate

# Run on a specific module
uv run mutmut run "evalwire.evaluators.contains*"

# Browse results interactively
uv run mutmut browse

@zurfjereluhmie
zurfjereluhmie merged commit d103d17 into main Apr 22, 2026
10 checks passed
@zurfjereluhmie
zurfjereluhmie deleted the test/mutation-testing branch April 22, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant