项目结构:
project
some_api
__init__.py
api1.py
api2.py
some-folder
some-helper-module.py
lib
some-libs
docs
some-docs
Dockerfile
README.md各种测试的位置应该是什么?
可能的解决方案
在project的并行程序中,我可以得到类似于
test
unit_tests
test1.py
test2.py
functional_tests
f_test1.py
f_test2.py
perf_tests
locust-files
load_test1.py
load_test2.py
test-data
something.csv发布于 2019-07-12 11:08:59
一般来说,这种结构通常是遵循的,希望它能有所帮助。所有类型的测试都应该在测试模块中,并有独立的子模块。有关更多详细信息,请访问这里
├── app_name
│
├── app_name
│ ├── __init__.py
│ ├── folder_name
│ └── etc...
├── tests
│ ├── unit
│ └── integration
├── README.md
├── setup.py
└── requirements.txt发布于 2019-07-12 11:13:21
在我们的团队中,我们通常将单元测试与它们所引用的python文件放在一起,以及项目之外的集成和性能测试,因为它们将测试它几乎像黑匣子一样:
project
some_api
__init__.py
api1.py
api1_unit_testing.py
api2.py
api2_unit_testing.py
some-folder
some-helper-module.py
lib
some-libs
docs
some-docs
tests
profiling_performance.py
integration_testing.py
Dockerfile
README.mdhttps://stackoverflow.com/questions/57005687
复制相似问题