-
-
Notifications
You must be signed in to change notification settings - Fork 21
Support all [pytest] commands #7
Comments
Original comment by Florian Wilhelm (Bitbucket: florianwilhelm, GitHub: florianwilhelm): py.test reads its configuration from This actually also causes another problem if a I use only |
Original comment by Florian Wilhelm (Bitbucket: florianwilhelm, GitHub: florianwilhelm): Actually unrelated but I still want to ask. Why do you use this
|
Original comment by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco): Florian, the issue with setup.cfg lies with pytest itself and is reported here. The workaround is to use pytest.ini instead of setup.cfg for options to the pytest run, but use setup.cfg for standard parameters to the pytest distutils command. Furthermore, you may add the alias of
I suspect it's because pytest.main didn't accept command line parameters at the time pytest-runner was originally authored. Or it's possible I tried that technique and ran into problems, but if so, there's no record of that in the commit history. If you can determine when that support was added to pytest and test your technique, I'd be happy to accept it. I'm all for shorter, simpler code. |
Original comment by Florian Wilhelm (Bitbucket: florianwilhelm, GitHub: florianwilhelm): Jason, thanks for your reply. I prefer having only one config file, namely |
As discussed here pytest-dev/pytest-runner#7 and sort of pytest-dev/pytest#567
Originally reported by: Florian Wilhelm (Bitbucket: florianwilhelm, GitHub: florianwilhelm)
When defining user options like norecursedirs in setup.cfg or pytest.ini like explained here, pytest-runner can't handle them.
The text was updated successfully, but these errors were encountered: