I am the current maintainer of a biggish legacy wx python app. It was a community work and although had quite a bit of engineering thrown in, it was developed without any tests. I want to set up a testing repository to amend this situation so at least some critical parts of the code as well as new code can be developed with unit tests. My question is how to set up the test package. The code repository is structured as:
.git/
Mopy/
bash/ # all the code is here
package1/
package2/
...
module1.py
module2.py
...
Seems simpler to have it in another repository - but how would I structure it ? How am I to import the classes to test ? Are there any standard conventions in python (as in src/test/java
for maven) ?
I am familiar with JUnit etc - so this is not about how to write the tests - only about how to structure the testing package and importing the classes/bootstrapping it.