Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test folder
#1
Hi guys
Just wanted to find out you options on this. I have a project folder like so

- project1
    - app1
        - src
    - app2 
        - src
    - app3
        - src
Each app is an application or component which makes up an entire system. My question is where would you put you test folder, do you create a test folder under each app and place yo unit test there? Or would you create one test folder under project, same level as app1 and place all your unit test there (maybe with subfolder test/app1/*.pc etc)?

Im only asking because, I almost go into a row making a decision about where to actually place these folder. Im in favor of the former, where each app has its own test folder. I want to what other do in this industry. If you choose one why?

I know its not big deal, however I feel like im missing something if im not right.

Many thanks
Reply
#2
if the test is for an individual app, then I would put it at same level as the src directories.
If a complete project test, I would put it at the app level.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare folder A and subfolder B and display files that are in folder A but not in su Melcu54 3 466 Jan-05-2024, 05:16 PM
Last Post: Pedroski55
  Compare filename with folder name and copy matching files into a particular folder shantanu97 2 4,392 Dec-18-2021, 09:32 PM
Last Post: Larz60+
  How to test and import a model form computer to test accuracy using Sklearn library Anldra12 6 3,068 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  Move file from one folder to another folder with timestamp added end of file shantanu97 0 2,438 Mar-22-2021, 10:59 AM
Last Post: shantanu97
  Python Cut/Copy paste file from folder to another folder rdDrp 4 4,945 Aug-19-2020, 12:40 PM
Last Post: rdDrp
  How to write test cases for a init function by Unit test in python? binhduonggttn 2 3,066 Feb-24-2020, 12:06 PM
Last Post: Larz60+
  How to write test cases by Unit test for database configuration file? binhduonggttn 0 2,512 Feb-18-2020, 08:03 AM
Last Post: binhduonggttn
  Delete directories in folder is not working after folder is updated asheru93 2 2,603 Feb-13-2019, 12:37 PM
Last Post: asheru93
  copy content of folder to existing folder shlomi27 0 2,614 Aug-11-2018, 01:44 PM
Last Post: shlomi27

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020