PSMutant
0.1.0
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.
Minimum PowerShell version
7.2
Installation Options
Owners
Copyright
(c) Fortigi. MIT licensed.
Package Details
Author(s)
- Fortigi
Tags
mutation-testing testing pester ast quality test-quality coverage
Functions
Invoke-PSMutation Get-PSMutationCandidate Set-PSMutationText
Dependencies
-
- Pester (>= 5.0.0)
Release Notes
Initial release: AST-based mutation operators (binary, boolean, number, string, negation), sandboxed in-process execution, covered-lines-only filtering, JSON report, and report-only/break thresholds.
FileList
- PSMutant.nuspec
- LICENSE
- PSMutant.psd1
- PSMutant.psm1
- README.md
- src\Invoke-PSMutation.ps1
- src\PSMutation.Operators.ps1
- src\PSMutation.Report.ps1
- src\PSMutation.Runner.ps1
- src\PSMutation.Sandbox.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.1.0 (current version) | 9 | 7/3/2026 |