jeudi 20 juin 2019

How to send phpunit errors to Laravel log channels? i.e. slack?

we are implementing functional testing in our Laravel app environment and we want the results of phpunit dusk tests to be logged in a slack channel via webhook. Anyone?

We achieved to log results in single files as described in documentation (using phpunit --log-TypeOfLog) but we want to receive notifications when we run that tests in automated mode in other channels.

We can manually send notifications to slack (or other channels) if we put Log::error('Something happened!'); but we want this to be automatically done when tests finish.



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2IUJkGK
via IFTTT

Aucun commentaire:

Enregistrer un commentaire