I have a Python 3.4 project that I'm working on using Visual Studio Code (v1.19.2)
The project structure is:
root
foo
__init__.py
foo.py
footests.py
footests.py contains my unittest
based tests:
import unittest
import foo
class footests(unittest.TestCase):
def test(self):
self.assertEquals(True, True)
if __name__ == '__main__':
unittest.main()
I have enabled unittest in my VS Code User Settings like so:
"python.unitTest.unittestEnabled": true,
My problem is that whenever I try to discover unit tests in VS Code, I get the following message:
No tests discovered, please check the configuration settings for the tests.
And in the VS Code Output window all I see is:
start
My question is - Why don't VS Code / unittest discover the unit test in the foo
sub-folder?