mutmut icon indicating copy to clipboard operation
mutmut copied to clipboard

tests_dir configuration is gone?

Open gurbentor opened this issue 9 months ago • 2 comments

Hi,

I'm currently trying to migrate from mutmut V2 to V3, and I see that although it still appears in the README, the tests_dir part is no longer being parsed when mutmut is building the config and it just tries to run all tests in "tests/" dir. It fails in my project setup since under "tests/" I have the dirs "unit/", "integration/", "load/", etc, and obviously I want mutmut to only use the unit tests. The other are not meant to run locally and fails immediately.

Am I missing something? Is there really no way to specify the tests dir we want to use?

Thanks

gurbentor avatar Mar 03 '25 14:03 gurbentor

Hmm. Yea, that's right. As mutmut 3 is now tightly integrated with pytest, that option didn't survive. I think it should be fairly easy to implement though. It looks like PytestRunner.execute_pytest could add the paths before the execution. A PR would be very welcome.

(Well.. load tests are obvious, but "integration" sounds like something you'd want to run with mutmut to me. That term normally means just things that might include DB or something like that.)

boxed avatar Mar 03 '25 19:03 boxed

Oh Ok, thanks for the response. I hope I'll be able to get to it soon and create a PR.

gurbentor avatar Mar 04 '25 10:03 gurbentor