Testing
Rapidez is built upon Laravel, so you have access to its testing suite. On top of that there is a full Playwright test suite available!
Installation
Rapidez already includes some tests in the core. To install and to use these tests, you can run the following command. This will publish all the tests to your project.
php artisan rapidez:install:tests
Running tests
- PHPUnit:
vendor/bin/phpunit
(feature tests) - Playwright:
npx playwright test --ui
(browser tests)
Writing tests
All tests are located in the /tests
folder:
/tests/playwright
-> Laravel testing docs/tests/Feature
-> Playwright docs
Static analysis
Rapidez comes with PHPStan for static analysis and Laravel Pint for code style analysis. These can be used in to keep the code quality high. The available commands:
- PHPStan:
composer analyse
- Pint test:
composer style
- Pint fix:
composer fix-style
Continuous Integration
Have a look at the Github workflows within the Rapidez Core. Need help? For example with running it on another platform like Bitbucket Pipelines? Or, to run the tests with your Magento environment instead of a demo environment in Docker? Ask us on Slack!