Mutmut

Latest version: v3.2.3

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 8

1.4.0

~~~~~~~~~~~~~~~~~~

* New setting: `--test-time-base=15.0`. This flag can be used to avoid issues with timing.

* Post and pre hooks for the mutation step: `--pre-mutation=command` and `--post-mutation=command` if you want to run some command before and after a mutation testing round.

* Fixed a bug with mutation of imports.

* Fixed missing newline at end of the output of mutmut.

* Support for mutating only lines specified by a patch file: `--use-patch-file=foo.patch`.

* Fixed mutation of arguments in function call.

* Looser heuristics for finding the source to mutate. This should mean more projects will just work out of the box.

* Fixed mutation of arguments in function call for python 2.7.

* Fixed a bug where if mutmut couldn't find the test code it thought the tests hadn't changed. Now mutmut treats this situation as the tests always being changed.

* Fixed bug where the function body was skipped for mutation if a return type annotation existed.

*

1.3.1

~~~~~~~~~~~~~~~~~~

* Fixed a bug where mutmut crashed if a file contained exactly zero bytes.

1.3.0

~~~~~~~~~~~~~~~~~~

* Fixed incorrect loading of coverage data when using the `--use-coverage` flag.

* Fixed a bug when updating the cache.

* Fixed incorrect handling of source files that didn't end with a newline.

1.2.0

~~~~~~~~~~~~~~~~~~

* JUnit XML output: Run `mutmut junitxml` to output the results as a JUnit compatible XML file.

* Python 2 compatibility fixes.

* pypy compatibility fixes.

* Fixed an issue where mutmut couldn't kill the spawned test process.

* Travis tests now test much more thoroughly, both python2, 3, pypy and on windows.

* The return code of mutmut now reflects what mutmut found during execution.

* New command line option `--test-time-multiplier` to tweak the detection threshold for mutations that make the code slower.

* Fixed compatibility with Windows.


Thanks goes out Marcelo Da Cruz Pinto, Savo Kovačević,

1.1.0

~~~~~~~~~~~~~~~~~~~

* New mutant: mutate the first argument of function calls to None if it's not already None

* Totally overhauled cache system: now handles duplicates lines correctly.

1.0.1

~~~~~~~~~~~~~~~~~~~

* Minor UX fixes: --version command was broken, incorrect documentation shown, missing newline at the very end.

* Caching the baseline test time. This makes restarting/rechecking existing mutants much faster, with a small risk of that time being out of date.

Page 4 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.