# Testing standard
# Software
- Tests should be compatible with the latest PHPUnit (opens new window) production release.
- For Code coverage we recommend installing pcov (opens new window).
# Requirements
- All components must be tested and covered.
# Conventions
- Test classes must be named with the
Test
suffix. - Test classes must be located in the
Tests/<component>/
directory.
# Configuration
- The configuration for PHPUnit can be found at phpunit.xml (opens new window).
- Use the configuration at phpunit-report.xml (opens new window) for testing with code coverage.
# Running Tests
To run tests:
vendor/bin/phpunit -c phpunit.xml
To run tests with a code coverage report at ./build/coverage/
:
vendor/bin/phpunit -c phpunit-report.xml
TIP
Check the PHPUnit Documentation (opens new window) for all available options.