Laravel Dusk, Intuitive and Easy Browser Based Testing Platform
Laravel Dusk provides an expressive, easy-to-use browser automation and testing API. By default, Dusk does not require you to install JDK or Selenium on your machine. Instead, Dusk uses a standalone ChromeDriver installation. However, you are free to utilize any other Selenium compatible driver you wish. Read More
In essence Dusk is a convenience wrapper for front-end testing, trying to take some of the pain away from the setting up of the process. Dusk allows you to test dynamic JavaScript applications with convenient browser abstractions and PHPUnit assertions. Before Laravel 5.4 full browser testing automation wasn’t possible without third party packages. This is another example of the Laravel framework facilitating testing and making it convenient for developers to get started.
How does it work?
With Dusk, Taylor has totally re-composed how application testing functions in Laravel. Everything is now based on a tool called ChromeDriver, which is an independent server that really controls Chrome/Chromium. When you compose application tests, Dusk sends your requests to ChromeDriver, which at that point turns up Chrome to run your tests in the program and afterward sends back the outcomes. It simplifies the way to developers can create Unit tests, Regression tests, Acceptance tests and also known as browser testing.