larafam's avatar

When to test??

hi, i never done any laravel testing with phpunit. My question is, why we need http testing when we have browser testing with laravel dusk??

http test only needed when we try to test api request.. am i wrong?

0 likes
2 replies
tykus's avatar

Think Dusk whenever you want tests to interact with your JavaScript application.

If your feature tests are covering PHP functionality (including GET, POST requests) then PHPUnit will be quicker

Please or to participate in this conversation.