I do have several small modules where the tests are inside them and py.test
or nose
does not look for them because they do not contain test
in their filename.
How can I convince py.test
or nose
to look for tests inside all python files, recursively - '''including the ones that do not have test
in their filenames'''?
Inside the source files I do keep the standard naming convention: class testSomeName
with methods def test_some_name
.
If this is not possible, what other solution can I use to obtain the same result.
I do not want to manually create a list of all files containing the test, I want a solution that supports discovery.