October Tester is a testing API and browser automation for testing applications built with OctoberCMS. It makes use of both the Laravel HTTP Testing API and the Laravel Dusk API along with the Selenium WebDriver bindings for PHP. It requires Selenium to be installed on the testing machine.
Add the October Tester dependency to your project as a Composer development requirement.
composer require --dev damianlewis/october-tester
Once installed, you should register the DamianLewis\OctoberTester\OctoberTesterServiceProvider
service provider and run the octobertester:install
Artisan command.
php artisan octobertester:install
A Browser directory will be created within your tests directory. Next, set the APP_URL environment variable in your .env file. This value should match the URL you use to access your application in a browser.
A config/webdriver.php
file is installed to allow webdriver configurations to be made.