lundi 7 janvier 2019

Laravel Dusk - Run tests & get results via code

I need to make a tool to Browser test my production system. I have read up all about Laravel Dusk and it seems like a perfect tool. However, I need to run tests automatically via schedule and have a dashboard with the results.

I can easily run the command php artisan dusk from the code using the Scheduler, however, how can I get the results? Is there a better option than simply parsing the Console Output from that command? Ideally I would have a way of getting the status of each test (whether it passed or failed) to be able to log, process and display all that information.

The Dusk documentation hasn't got any more information on running the tests programatically, it only has instructions to run via php artisan dusk.

Has anyone encountered this?

Thank you!

Aucun commentaire:

Enregistrer un commentaire