Test Laravel Octane application with PHPUnit

439 Views Asked by At

I want to run my automation tests over the Swoole server which is run by my Octane on the specific port using PHPUnit but how can I run the test on a particular URL?

For example, my Swoole server runs on http://localhost:8080, and I want to run the feature tests over this URL instead of the PHPUnit internal kernel.

1

There are 1 best solutions below

0
On

use k6 package to run get request testing code to do concurrency test between laravel-artisan and laravel-octane(swoole driver).

see this guide https://medium.com/beyn-technology/a-small-test-case-with-laravel-octane-b00128c706ad#6967