damianlewis/october-tester

Testing API and browser automation for OctoberCMS.

v1.0.4 2018-05-29 17:40 UTC

This package is auto-updated.

Last update: 2024-05-15 23:10:05 UTC


README

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.

Installation

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.