Reputation: 5390
I have a directory structure
+ (project-root)
+- setup.py
+- setup.cfg
+-+ src/
+- asdf.py
+- asdf_test.py
and a directory structure
+ (project-root)
+- setup.py
+- setup.cfg
+-+ src/
+- _asdf.py
+- _asdf_test.py
In setup.py, I have:
setuptools.setup(
name='project',
description='',
author='',
author_email='',
packages=setuptools.find_packages('src'),
package_dir={'':'src'},
setup_requires=['nose>=1.0'],
test_suite='nose.collector'
)
The setup.cfg
is empty in the above scenarios (devoid of any [nosetests]
section).
The first directory structure's tests are run with python setup.py nosetests
. The second directory structure's tests aren't. How do I make the second directory structure's tests run?
Upvotes: 0
Views: 173