Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All the statuses become “not checked” #341

Open
32145072 opened this issue Nov 3, 2024 · 2 comments
Open

All the statuses become “not checked” #341

32145072 opened this issue Nov 3, 2024 · 2 comments

Comments

@32145072
Copy link

32145072 commented Nov 3, 2024

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.

@boxed
Copy link
Owner

boxed commented Nov 4, 2024

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

@32145072
Copy link
Author

32145072 commented Nov 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants