I am trying to use nosetests
as part of my building/publishing chain, which is based on distutils2
(using the setup.cfg
file instead of the "legacy" setup.py
script).
Unluckily, when I issue:
pysetup run test
I get:
running test
running build
running build_py
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
...yet, if I issue nosetests
from the same location I can see all my tests being executed. My directory structure looks like:
|-- docs
|-- my_package
| |-- __init__.py
| |-- foobar.py
| `-- tests
| `-- foobar_test.py
|-- README.md
|-- requirements.txt
`-- setup.cfg
and the relevant part of my setup.cfg
file contains:
[test]
runner = nosetests
What am I doing wrong? The official documentation is less than perfect on this point...