@iambateman Just chain your command after the test command:
pest && your_command_here
Your command will only be ran if pest exits successfully.
Summer Sale! All accounts are 50% off this week.
I'm building an automated workflow that needs tests to run at the beginning of a command.
exec("./vendor/bin/pest", $result);
dd($result);
The code above works, but it just outputs a string of the results.
Is there a way to call Pest/PhpUnit programmatically to get structured results back? Ideally I'd like to get the equivalent of ["status"=>200] back to know that all the tests worked, or a list of the tests that failed.
@iambateman Just chain your command after the test command:
pest && your_command_here
Your command will only be ran if pest exits successfully.
Please or to participate in this conversation.