Marcel Pociot has created a wonderful Chrome extension that allows us to record our activity when surfing our website and translates these activities into Laravels testing syntax.

Using the chrome extension

enter image description here

With just a few clicks, you just magically created a integration test for your registration process.

But wait! There's more you can do!

If you, for example, want to generate dynamic data within your test, you can do this by using the Laravel TestTools context menu. The menu gives you access to some handy faker methods to generate emails, names or words on the fly.

enter image description here


You can not test your Javascript/VueJS/AngularJS single page application with this. Even though the extension will generate the test code for you it will not work with Laravel. That's because when Laravel is running these tests it doesn't have Javascript. What happens, when Javascript runs your tests is that it simulates a GET/POST/whatever request to the specified URL and fetches and parses the resulting HTML DOM. That DOM is then used to modify input fields, search text and submit forms.

This is awesome - can I help you?

You sure can - the source code is available on Github.

You can get the Chrome Extention here: