nwyin/irradiate — mutation testing for Python
Run mutation testing on your Python project with irradiate. Auto-annotates survived mutants in PR diffs.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | irradiate version to install (e.g. '0.1.1'). Default: latest. | no | "" |
| paths-to-mutate | Source paths to mutate (space-separated). Overrides pyproject.toml. | no | "" |
| tests-dir | Path to test directory. Overrides pyproject.toml. | no | "" |
| diff | Only mutate functions changed since this git ref (e.g. 'origin/main'). Great for PR checks. | no | "" |
| fail-under | Fail the step if mutation score is below this percentage (0-100). | no | "" |
| sample | Test a random subset of mutants. Values 0.0-1.0 are fractions, >1 are absolute counts. | no | "" |
| report | Generate a report ('json' or 'html'). | no | "" |
| report-output | Output path for the report file. | no | "" |
| workers | Number of parallel workers. Default: number of CPUs. | no | "" |
| python-version | Python version to use. Default: '3.12'. | no | 3.12 |
| extra-args | Additional arguments passed directly to `irradiate run`. | no | "" |
Outputs
| name | description |
|---|---|
| score | Mutation score as a percentage (e.g. '85.7'). |
| killed | Number of killed mutants. |
| survived | Number of survived mutants. |
| total | Total number of mutants tested. |