I use instructions, that described here
For test I use this command:
py.test --ignore=env
But if I use
python setup.py test
pytest runs all test (+ in env).
How to skip test in env dir?
Thanks!
UPDATE
setup.py:
from setuptools import setup, find_packages
setup(
packages=find_packages(),
setup_requires=['pytest-runner'],
tests_require=['pytest'],
)
setup.py test
is deprecated as described in the pytest-runner repo: https://github.com/pytest-dev/pytest-runner#deprecation-notice.
The recommended approach is to call python -m pytest
directly, as in your first command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With