All the statuses become “not checked”
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.
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.)
- Python version - Python 3.9.20
- OS - Windows 10
- wsl - Ubuntu 24.04.1
- mutmut ver - 3.2.0
[mutmut]
paths_to_mutate=src/
tests_dir=tests/
[pytest]
pythonpath = src
Thank you.
It looks like this project is something you can share with me to take a look at?
Thanks for your quick response.
- my project
https://github.com/32145072/mutmutissue341 The program from which the screenshot above was taken
- 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.
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?