This doc outlines conventions for making tests. These are not hard rules, but highly recommended.
Put test files in tests/ subfolder.
- Next to files being tested
- or if using
scripts/orsrc/folder for scripts, puttests/next to that folder.
Split tests for different methods up into different test files when appropriate.
Tests should focus on black box functionality - functionality clients see. If you are including white box testing, make that clear either with file or folder names.