[pytest-dev] How to deal with setup.py/setup.cfg ?
Florian Bruhin
me at the-compiler.org
Wed Jul 19 10:04:17 EDT 2017
Hi,
On Wed, Jul 19, 2017 at 04:02:34PM +0200, Bastien Sevajol wrote:
> All tests are collected. setup.cfg (addopts part) is the fail. I need this
> "addopts" part because when some developpers who work on the project create
> a virtualenv inside the project, pytest search into the venv folder (i add
> "addopts = tests" to force pytest to check only "tests" folder).
>
> How to conciliate them ? How keep a way to run test with "python setup.py
> test" and run a specific test with "pytest tests/test_b.py::test_b" ?
Set the testpaths option instead:
https://docs.pytest.org/en/latest/customize.html#confval-testpaths
Florian
--
https://www.qutebrowser.org | me at the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20170719/b6e2a59f/attachment.sig>
More information about the pytest-dev
mailing list