| name | testing |
|---|---|
| description | PHPUnit—test/ layout, helpers, constants, coverage output, secrets hygiene. |
- Adding or changing tests under
test/. - Debugging failing tests or coverage gaps.
- PHPUnit 10 via
vendor/bin/phpunitorcomposer test. - Configuration:
phpunit.xml—suite directorytest/, source coverage forsrc/, reports under./tmp/when generated.
- Tests live as
*Test.php(e.g.EntriesTest.php,AssetsTest.php,SyncTest.php) alongside helpers such asconstants.php,utility.php,REST.php. - Reuse existing helpers before introducing parallel fixtures.
- Some tests may exercise HTTP against Contentstack (see
test/README.mdPrerequisite); treat credentials as local-only or CI secrets—never commit API keys or tokens.
- Clover/HTML/text reports are configured in
phpunit.xml; ensuretmp/(or chosen output dirs) stays out of version control if generated locally (see.gitignore).
- Tests must not embed real delivery tokens or API keys in the repository.
skills/dev-workflow/SKILL.mdskills/code-review/SKILL.md