mutmut icon indicating copy to clipboard operation
mutmut copied to clipboard

All the statuses become “not checked”

Open 32145072 opened this issue 1 year ago • 3 comments

Hello. I am currently learning about mutation testing .

I tried it after mutmut 3.x was released, but I am having trouble solving the problem where all the statuses become “not checked”.

When I ran mutmut run, I got an error saying failed to collect stats, no active tests found.

The results of the mutmut browse are as follows. mutmut1

The generated meta file is as follows.

{
    "exit_code_by_key": {
        "fizz_buzz.x_fizz_buzz__mutmut_1": null,
        "fizz_buzz.x_fizz_buzz__mutmut_2": null,
        "fizz_buzz.x_fizz_buzz__mutmut_3": null,
        "fizz_buzz.x_fizz_buzz__mutmut_4": null,
        "fizz_buzz.x_fizz_buzz__mutmut_5": null,
        "fizz_buzz.x_fizz_buzz__mutmut_6": null,
        "fizz_buzz.x_fizz_buzz__mutmut_7": null,
        "fizz_buzz.x_fizz_buzz__mutmut_8": null,
        "fizz_buzz.x_fizz_buzz__mutmut_9": null,
        "fizz_buzz.x_fizz_buzz__mutmut_10": null,
        "fizz_buzz.x_fizz_buzz__mutmut_11": null,
        "fizz_buzz.x_fizz_buzz__mutmut_12": null,
        "fizz_buzz.x_fizz_buzz__mutmut_13": null,
        "fizz_buzz.x_fizz_buzz__mutmut_14": null,
        "fizz_buzz.x_fizz_buzz__mutmut_15": null
    },
    "hash_by_function_name": {
        "fizz_buzz": "b62123013949868a4a537fdf38533c9c"
    }
}

I also tried running it on other projects such as astmonkey, but I was unable to see the correct status. Is there any way to solve this?

About my system: (Please let me know if there is any information missing.)

  1. Python version - Python 3.9.20
  2. OS - Windows 10
  3. wsl - Ubuntu 24.04.1
  4. mutmut ver - 3.2.0
[mutmut]
paths_to_mutate=src/
tests_dir=tests/
[pytest]
pythonpath = src

Thank you.

32145072 avatar Nov 03 '24 12:11 32145072

It looks like this project is something you can share with me to take a look at?

boxed avatar Nov 04 '24 07:11 boxed

Thanks for your quick response.

  1. my project

https://github.com/32145072/mutmutissue341 The program from which the screenshot above was taken

  1. astmonkey

https://github.com/mutpy/astmonkey/tree/master/astmonkey I put the executable file in the src folder and wrote the setup.cfg in the same way.

32145072 avatar Nov 04 '24 10:11 32145072

I think it works with this in setup.cfg:

...
also_copy=pytest.ini

This will tell mutmut to also copy pytest.ini to the mutants folder.

Maybe we should include this per default in the also_copy list?

Otto-AA avatar Jul 13 '25 16:07 Otto-AA