Search code examples
pythonnosenosetests

'nosetests' was unable to collect test files from directory


I am having a hierarchy of directories and inside every directory there is one 'test/' directory which has all the test files. nosetests is not able to collect these test files somehow. I have followed naming convention used for filenames and class names as well. All the classes defined in those files are subclass of unittest:TestCase. Still no luck. What must be the problem ?


Solution

  • If you carefully see the python nose usage, you will get it

    --exe Look for tests in python modules that are executable. Normal behavior is to exclude executable modules,

    Thanks.