GithubHelp home page GithubHelp logo

Comments (7)

boxed avatar boxed commented on September 28, 2024

Well there really shouldn't be any case where mutmut doesn't know where the tests are. That would break the logic that makes mutmut smart about what to rerun and not.

That being said, the hard crash like this isn't good. It would be better if it printed an error message saying it can't find the tests and ask you to add the required config in setup.cfg

from mutmut.

nkuttler avatar nkuttler commented on September 28, 2024

Does mutmut attempt to detect test directories? I see https://github.com/boxed/mutmut/blob/master/mutmut/__main__.py#L119 which only seems to find tests in the current directory. Would it not be preferable to use the standard unittest test discovery, if possible?

from mutmut.

nkuttler avatar nkuttler commented on September 28, 2024

Fwiw, using unittest.TestLoader().discover(path) or something similar might be preferable to find test dirs. I could look into getting the directories from that.

from mutmut.

boxed avatar boxed commented on September 28, 2024

That might work for unittest, but it's not a general solution. mutmut doesn't know about what test framework you're using.

from mutmut.

nkuttler avatar nkuttler commented on September 28, 2024

Automatic discovery for some users still sounds like an improvement to me? Not sure if I should look into it any further though as it's not general, which doesn't seem possible anyway.

from mutmut.

boxed avatar boxed commented on September 28, 2024

Yea.. I'm fine with doing that also.

from mutmut.

l0b0 avatar l0b0 commented on September 28, 2024

Looks like the regression happened in 2.4.1 - a Dependabot PR which only updates mutmut 2.4.0 to 2.4.1 broke my project. Not sure what the workaround is.

from mutmut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.