Skip to content

Releases: sourcefrog/cargo-mutants

cargo-mutants 0.2.2

16 Feb 17:07
v0.2.2
Compare
Choose a tag to compare
  • The progress bar now shows which mutant is being tested out of how many total.

  • The automatic timeout is now set to the minimum of 20 seconds, or 5x the time of the tests in a baseline tree, to reduce the incidence of false timeouts on machines with variable throughput.

  • Ctrl-c (or SIGINT) interrupts the program during copying the tree. Previously it was not handled until the copy was complete.

  • New --no-copy-target option.

cargo-mutants 0.2.1

11 Feb 02:53
v0.2.1
Compare
Choose a tag to compare
  • Arguments to cargo test can be passed on the command line after --. This allows, for example, skipping doctests or setting the number of test threads. #15

cargo-mutants 0.2.0

07 Feb 03:18
Compare
Choose a tag to compare

0.2.0

Released 2022-02-06

  • A new --timeout SECS option to limit the runtime of any cargo test invocation, so that mutations that cause tests to hang don't cause cargo mutants to hang.

    A default timeout is set based on the time to run tests in an unmutated tree. There is no timeout by default on the unmutated tree.

    On Unix, the cargo subprocesses run in a new process group. As a consequence ctrl-c is explicitly caught and propagated to the child processes.

  • Show a progress bar while looking for mutation opportunities, and show the total number found.

  • Show how many mutation opportunities were found, before testing begins.

  • New --shuffle option tests mutants in random order.

  • By default, the output now only lists mutants that were missed or that timed out. Mutants that were caught, and mutants that did not build, can be printed with --caught and --unviable respectively.