[Tutor] Where to store test-code?

Thomas Güttler guettliml at thomas-guettler.de
Thu Jun 13 04:22:28 EDT 2019


Up to now I use this structure:

src/myapp/setup.py
src/myapp/myapp/real_code.py

Now I want to write a test for a method which is implemented real_code.py.

Where should I write store the file which contains the unittest?

Is there a guideline for the directory structure of tests?

I know that there are several ways. I know that all these ways work. Nevertheless
it would be great to have a sane default. If there is a guideline IDEs could assist
to create new tests at a common location.

Related: https://youtrack.jetbrains.com/issue/JT-53069

Regards,
   Thomas



-- 
Thomas Guettler http://www.thomas-guettler.de/
I am looking for feedback: https://github.com/guettli/programming-guidelines


More information about the Tutor mailing list