PSMutant
0.9.2
Mutation testing for PowerShell. Injects small faults (flip -eq to -ne, $true to $false, N to N+1, drop -not) into your scripts using the PowerShell AST and reports how many your Pester suite catches - the metric line coverage cannot give you. Runs mutants in a throwaway sandbox so your source is never modified. Requires Pester 5.2.0 or later AT RUN TIME, and delibera
Mutation testing for PowerShell. Injects small faults (flip -eq to -ne, $true to $false, N to N+1, drop -not) into your scripts using the PowerShell AST and reports how many your Pester suite catches - the metric line coverage cannot give you. Runs mutants in a throwaway sandbox so your source is never modified. Requires Pester 5.2.0 or later AT RUN TIME, and deliberately does not declare it as a RequiredModule: PSMutant runs under whichever Pester >= 5.2.0 you have loaded rather than importing one for you. Install Pester yourself if you do not already have it.
Show more
Minimum PowerShell version
7.0
Installation Options
Owners
Copyright
(c) Fortigi. MIT licensed.
Package Details
Author(s)
- Fortigi
Tags
mutation-testing testing pester ast quality test-quality coverage
Functions
Dependencies
This module has no dependencies.
Release Notes
PSMutant 0.9.2
- A suite that passes under Invoke-Pester now passes PSMutant's baseline too.
- A test file that requires a version of Pester is run, not scored as a kill.
Full release notes: https://github.com/Fortigi/PSMutant/releases/tag/v0.9.2
FileList
- PSMutant.nuspec
- LICENSE
- PSMutant.psd1
- PSMutant.psm1
- README.md
- schemas\v1\config.schema.json
- schemas\v1\report.schema.json
- schemas\v2\report.schema.json
- schemas\v3\report.schema.json
- src\Invoke-PSMutation.ps1
- src\PSMutation.Config.ps1
- src\PSMutation.Glob.ps1
- src\PSMutation.Incremental.ps1
- src\PSMutation.Inline.ps1
- src\PSMutation.Killers.ps1
- src\PSMutation.MutationTestingReport.ps1
- src\PSMutation.Operators.ps1
- src\PSMutation.Output.ps1
- src\PSMutation.Pester.ps1
- src\PSMutation.Recheck.ps1
- src\PSMutation.Report.ps1
- src\PSMutation.Runner.ps1
- src\PSMutation.Sandbox.ps1
- src\PSMutation.Sarif.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.9.2 (current version) | 20 | 11/9/2026 |
| 0.9.1 | 38 | 10/26/2026 |
| 0.9.0 | 29 | 10/23/2026 |
| 0.8.0 | 24 | 10/19/2026 |
| 0.7.0 | 28 | 10/16/2026 |
| 0.6.0 | 36 | 10/10/2026 |
| 0.5.0 | 237 | 9/1/2026 |
| 0.4.0 | 14 | 8/28/2026 |
| 0.3.2 | 27 | 8/23/2026 |
| 0.3.1 | 28 | 8/21/2026 |
| 0.2.2 | 11 | 8/18/2026 |
| 0.2.1 | 8 | 8/18/2026 |
| 0.2.0 | 12 | 8/17/2026 |
| 0.1.0 | 94 | 7/3/2026 |