mutation_test
A command line application to measure the quality of your test cases by mutating your code and checking if your tests detect the changes.
1.8.0
48K downloads/mo
#1496 most downloaded on pub.dev
domohuhn/mutation-test
What this package is like to depend on
Last release 6 months ago
09 Feb 2026
Release timing varies
gaps range from 5 weeks to 1.2 years
Nearly every release is documented
notes for 15 of 15 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
15 releases · first in 2022
2 releases in the last 12 months
see the full history below
Release timeline
15 releases · May 2022 to Feb 2026
2023
2024
2025
2026
Releases
latest 15-
1.8.009 Feb 2026Release notes
Open source →- The input files element now accepts the wildcards * and ** in its path
- Added an option to exclude whole directories in the exclude tag. These options also accept the wildcards * and **.
Release notes
Open source →- The input files element now accepts the wildcards * and ** in its path
- Added an option to exclude whole directories in the exclude tag. These options also accept the wildcards * and **.
-
1.7.116 Nov 2025Release notes
Open source →- Fixed issues when inferring test commands: the working directory will be set to the current directory and on windows the commands are run inside a shell environment
Release notes
Open source →- Fixed issues when inferring test commands: the working directory will be set to the current directory and on windows the commands are run inside a shell environment
-
1.7.001 Sep 2024Release notes
Open source →- Added new builtin rules that remove lines of code (void function calls and contents of arrays)
- Coverage information is provided in the html report: line numbers of instrumented lines are displayed in red and executed lines are displayed in green
- Fixed a problem when the user provides quality thresholds
Release notes
Open source →- Added new builtin rules that remove lines of code (void function calls and contents of arrays)
- Coverage information is provided in the html report: line numbers of instrumented lines are displayed in red and executed lines are displayed in green
- Fixed a problem when the user provides quality thresholds
-
1.6.025 Oct 2023Release notes
Open source →- Added the option to exclude lines not covered by tests. You can pass a file with coverage information in the lcov format via
the command line flag "--coverage". - Added the (experimental) option to strings from the mutations via command line switch.
- Added a mutation that removes break statements from switches for C or C++
Release notes
Open source →- Added the option to exclude lines not covered by tests. You can pass a file with coverage information in the lcov format via the command line flag "--coverage".
- Added the (experimental) option to strings from the mutations via command line switch.
- Added a mutation that removes break statements from switches
- Added the option to exclude lines not covered by tests. You can pass a file with coverage information in the lcov format via
-
1.5.104 Sep 2023Release notes
Open source →- Fixed a bug that may cause the mutation test to stop in case the mutation reduces the code size near the end of the file.
Release notes
Open source →- Fixed a bug that causes the mutation test to stop in case the mutation reduces the code size near the end of the file.
-
1.5.001 Aug 2023Release notes
Open source →- Optional function arguments are no longer swapped
- If no test command is given, the program will try to infer it from pubspec.yaml
- A single invocation of the program will now always produce a single report named mutation-test in the given output directory
- Added a section in the readme explaining how to do an incremental analysis
Release notes
Open source →- Optional function arguments are no longer swapped
- If no test command is given, the program will try to infer it from pubspec.yaml
- A single invocation of the program will now always produce a single report named mutation-test in the given output directory
-
1.4.024 May 2023Release notes
Open source →- Added junit/xunit style XML reports to conform to the standard for test tools.
It should now be possible to upload the results in tools like Polarion. - Performing a dry run will now generate the specified outputs. All mutations
defined by the rules will be marked as undetected. - Added optional "id" attribute to rules in the xml configuration file
- xml configuration file version increased to 1.1
- Added a column in the generated html report that shows the mutation pattern and id
- Require dart 3
Release notes
Open source →- Added junit/xunit style XML reports to conform to the standard for test tools. It should now be possible to upload the results in tools like Polarion.
- Performing a dry run will now generate the specified outputs. All mutations defined by the rules will be marked as undetected.
- Added optional "id" attribute to rules in the xml configuration file
- xml configuration file version increased to 1.1
- Added a column in the generated html report that shows the mutation pattern and id
- Require dart 3
- Added junit/xunit style XML reports to conform to the standard for test tools.
-
1.3.409 Apr 2023Release notes
Open source →- Improved mutation rules that switch function arguments
- Updated dependencies
Release notes
Open source →- Improved mutation rules that switch function arguments
- Updated dependencies
-
1.3.304 Feb 2023Release notes
Open source →- Improved builtin rules with operators like "+=". There should be less useless mutations that are always detected now.
- The <exclude> element in xml rule definitions now supports the exclusion of files by listing them as <file> element.
Release notes
Open source →- Improve builtin rules with operators like "+=". There should be less useless mutations that are always detected now.
- The <exclude> element in xml rule definitions now supports the exclusion of files by listing them as <file> element.
-
1.3.230 Dec 2022Release notes
Open source →- Added builtin rules to swap arguments on function calls.
- Added a dark theme (prefers-color-scheme: dark) for html reports.
Release notes
Open source →- Added builtin rules to swap arguments on function calls.
- Added a dark theme (prefers-color-scheme: dark) for html reports.
-
1.3.130 Oct 2022Release notes
Open source →- Fixed bugs when creating reports.
- Added additional unit tests so that the files are listed in coverage metrics
-
1.3.029 Oct 2022Release notes
Open source →- Files without mutations are now no longer reported as NaN % mutations
- Detected and mutations with timeouts are reported in the generated html
- Updated the builtin rules to not test for +-0 and to exclude ++ and --
-
1.2.215 May 2022Release notes
Open source →- Fixed minor problems with the generated html files. Source code strings are escaped and a table was fixed.
-
1.2.107 May 2022Release notes
Open source →- Renamed executable to "mutation_test" follow dart file conventions.
- Added exclusion rules for dart import and export statements in the default rule set.
-
1.2.007 May 2022Release notes
Open source →- Html reports are prettier. The look of the files is inspired by the lcov reports.
- Running the program without any arguments no longer causes an error. Instead, the program will assume that you are using a dart project, so alle files in lib/ will be mutated and tested via dart test.