Skip to content

Conversation

@souradeep-das
Copy link
Contributor

@souradeep-das souradeep-das commented Aug 13, 2025

Overview

Allow supplying paths-to-mutate (as comma separated values), tests-dir, and debug 'options' through the cli tool

Example:

mutmut --paths-to-mutate <path1,path2> --tests-dir <path> --debug run

@boxed
Copy link
Owner

boxed commented Aug 13, 2025

I don't think this is a good idea. Mutmut 2 had it and I consider that a mistake.

@souradeep-das
Copy link
Contributor Author

Thanks for the feedback! Any particular context/reasons why this could be bad?

@boxed
Copy link
Owner

boxed commented Aug 13, 2025

Just that the conf is annoying to get right and then you forget about it and your life sucks :)

And it won't work with the interactive UI either.

@SamWilsn
Copy link

How would you recommend filtering out tests? Some of ours run extremely long and aren't really necessary to run for every mutation.

@boxed
Copy link
Owner

boxed commented Aug 16, 2025

Ideally you would keep the mutations directory between runs, and then mutmut will automatically know which mutants to check. You can also set the stack depth to something lower to make it accept fewer tests.

@SamWilsn
Copy link

SamWilsn commented Aug 18, 2025

Sorry, not sure I follow. If I have a test function, test_really_really_long_running, how do I exclude it from the tests mutmut runs? It doesn't have a particularly deep stack compared to other tests, just a lot more iterations. In pytest, we use -m "not slow".

@pytest.mark.slow
def test_really_really_long_running():
   ...

@boxed
Copy link
Owner

boxed commented Aug 18, 2025

#423 see the discussion there. Options in the config makes sense to me.

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

Successfully merging this pull request may close these issues.

3 participants