Where do your unit tests live? Does is vary, depending on project size? Do you like a flat structure, with test files living alongside everything else? Are you a nested folders person?

I’m curious the practice of others, because I still don’t feel like I’ve found a testing directory structure that satisfies me.

  • CodeBlooded
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    My projects are usually laid out like this at work:

    src/
      — module_1/
        — some_file.py
    test/
      — module_1/
        — some_file_test.py