Updated testing-related documentation

This commit is contained in:
Chris Hartjes 2022-08-26 13:55:12 -04:00
parent 07585809b3
commit 74fe3dc733

View file

@ -47,10 +47,19 @@ The browser tests use [Dusk](https://laravel.com/docs/8.x/dusk) to run them.
When troubleshooting any problems, make sure that your `.env` file is configured
correctly to run the existing application.
To run the test suite use the following command from your terminal:
### Test Setup
Your application needs to be configued and up and running in order for the browser
tests to actually run. When running the tests locally, you can start the application
using the following command:
`php artisan serve`
To run the test suite use the following command from another terminal tab or window:
`php artisan dusk`
To run individual test files, you can pass the path to the test that you want to run.
`php artisan dusk tests/Browser/LoginTest.php`
`php artisan dusk tests/Browser/LoginTest.php`