# Testing Standard
# Testing Software
- Tests should be compatible with latest PHPUnit (opens new window) production release.\
- Code coverage requires to install pcov (opens new window).
# Requirements
- All components must be tested and covered
# Conventions
- Must be named with
Test
suffix - Must be located at
Tests/<component>/
# Configuration
- Configuration for PHPUnit can be found at phpunit.xml (opens new window).
- Use 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 code coverage report at ./build/coverage/
:
vendor/bin/phpunit -c phpunit-report.xml
TIP
Check PHPUnit Documentation (opens new window) for all available options.