[TIP] Where to put unit tests? (What to name subdirectory?)

Pekka Laukkanen peke at iki.fi
Sat Nov 15 11:37:49 PST 2008

2008/11/12 Grig Gheorghiu <gheorghe_gheorghiu at yahoo.com>:
> Then why not create sub-directories of 'tests' called unit, integration, acceptance, etc.
> You can have nose or py.test discover those directories too with some configuration-fu.

I used to do this. Nowadays I prefer having utest and atest
directories for unit and acceptance tests, respectively, directly on
the root next to src, doc, etc. Flat is better than nested and all


More information about the testing-in-python mailing list