All Projects → bobbybouwmann → dusk-demo

bobbybouwmann / dusk-demo

Licence: other
Laravel Dusk Demo

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to dusk-demo

laravel-visual-testing
Visual UI screenshot testing with Laravel Dusk using percy.io
Stars: ✭ 29 (+11.54%)
Mutual labels:  laravel-dusk
dusker
Stand alone Laravel Dusk test suit, which do not require Laravel framework itself
Stars: ✭ 28 (+7.69%)
Mutual labels:  dusk
social-network
Social Network made with Laravel + Vue + Love implementing TDD and Laravel Dusk tests
Stars: ✭ 25 (-3.85%)
Mutual labels:  laravel-dusk
astral
☀️ Go calculations for the position of the sun and moon.
Stars: ✭ 23 (-11.54%)
Mutual labels:  dusk

Laravel Dusk Demo

This is a demo project for the Alpha version of Laravel Dusk. It basically tests the register and login functionality from the default application scaffold from Laravel running php artisan make:auth using Dusk.

You can find the tests in the tests/Browser directory. For more information on the functions see the Laravel Dusk documentation.

Travis

This project is build on Travis and also runs the php artisan dusk command there which is really cool!

Running Dusk!

  • Clone or fork and clone the project
  • Run composer install
  • Create a database, default database name is set to dusk_test. So if you use a different database you need to update .env.dusk.local
  • Make sure your application is accessible by the browser. I used homestead to set everything up.
  • Run php artisan dusk to run the tests

You might see some chrome windows popup! Dusk is doing that for you! How awesome is that? If you watch the windows carefully you can even see the fields being filled.

Note: You don't have to migrate the database since it will migrate the database for each test. See use DatabaseMigrations in the test classes.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].