Java).
Separate folder for each class's unit tests: This convention would create a
folder named after each class, which would contain both the implementation
file and the unit test file. This approach keeps everything closely
related to each other and avoids cluttering the files with annotations or
comments. However, it may result in having many folders if there are many
classes in the project.
Java) - 我认识的许多开发人员使用 vim/emacs 或类似编辑器,对于 PHP 开发本身几乎没有任何支持。
您对这些单元测试放置位置的经验如何?您是否有其他我未在此列出的约定?还是我高估了对评审者的单元测试可访问性的重要性?