This package provides extensions for the Codeception test framework.
WebDriver extensions:
- JS Logger - log Javascript console messages
- Symfony Profiler URL - get Profile link for failed tests
- W3C HTML Validation - validate HTML source code
Other Extensions
- Wait After Test - add a delay after each test
- PHP >=7.2
- Codeception
Install the package via Composer
composer require --dev headsnet/codeception-extras
For extensions that require it, configure the WebDriver module.
WebDriver:
url: 'http://myapp.com'
browser: chrome
host: chrome
port: 4444
window_size: false
capabilities:
webStorageEnabled: true
javascriptEnabled: true
'goog:loggingPrefs':
performance: 'ALL'
'goog:chromeOptions':
perfLoggingPrefs:
enableNetwork: true
Contributions are welcome. Please submit pull requests with one fix/feature per pull request.
Composer scripts are configured for your convenience:
> composer test # Run test suite
> composer cs # Run coding standards checks
> composer cs-fix # Fix coding standards violations
> composer static # Run static analysis with Phpstan