Skip to content

Commit

Permalink
Make the bash script easily copy-pasteable
Browse files Browse the repository at this point in the history
Right now, the bash script to run mutations is not a code block.  There is a potential of people copy-pasting wrong thing.

When we show it as a code block, then copy-pasting is accurate and also easy.
  • Loading branch information
vivganes committed Aug 26, 2024
1 parent bdd8c37 commit 5e5200b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@ Mutmut keeps a result cache in ``.mutmut-cache`` so if you want to make sure you
run a full mutmut run just delete this file.

If you want to re-run all survivors after changing a lot of code or even the configuration,
you can use `for ID in $(mutmut result-ids survived); do mutmut run $ID; done` (for bash).
you can use the following command in a ``bash`` terminal.

.. code-block:: bash
for ID in $(mutmut result-ids survived); do mutmut run $ID; done
You can also tell mutmut to just check a single mutant:

Expand Down

0 comments on commit 5e5200b

Please sign in to comment.