Coder Social home page Coder Social logo

Comments (3)

jaraco avatar jaraco commented on August 17, 2024

All options to pytest need to be passed through the --addopts parameter. e.g.

python setup.py pytest --addopts='-v'

The options to ptr (or the distutils pytest command) are especially constrained, which is why all arguments passed through to pytest need to be in a single argument.

from pytest-runner.

skirpichev avatar skirpichev commented on August 17, 2024

All options to pytest need to be passed through the --addopts parameter.

I know, that that's possible, but I doubt it should be so in this particular case. Some other plugins reuse this global option to control output.

from pytest-runner.

jaraco avatar jaraco commented on August 17, 2024

I see. You're suggesting that pytest-runner should use the --verbose option to the distutils command and relay that to the pytest invocation.

I don't think we want to introduce this behavior. It adds complexity to the code and use-cases (considering what should happen if one passes -v to distutils but then -q to pytest, or -v to both).

I think it's better to maintain the separation of concerns, so -v to the distutils command applies to output of the distutils commands and -v to the pytest invocation applies to the output of the pytest run, and the two have no interaction. In this way, it clear where options should go to create verbose output for one or the other command, and you have to specify -v twice if you want both to be verbose.

So I'm strongly inclined to go wontfix on this one, but if you can provide a compelling case where you would gain a lot of value from the pytest run adopting the verbosity setting from the distutils command, then please share it here and I'll reconsider.

from pytest-runner.

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.