There are lots of answers for test discovery in python 2.7+ but I need one for python 2.6.6.
I've got such directory structure:
root
|-- runall.py
|-- src
| |-- a.py
| |-- b.py
|-- test
|-- atest.py
|-- btest.py
I would like to load all tests from test
in runall.py
and run them with unittest.main()
. How can I achieve that in python 2.6.6 (without installing additional modules!) in most elegant way ?