shadrix's avatar
Level 12

Would you still phpunit test on the server before deployment?

I'm currently reading this: https://docs.gitlab.com/ee/ci/examples/laravel_with_gitlab_and_envoy/index.html

And now I wonder, would you still test your code on the server via docker although your testing is fine locally on your computer?

When does it make sense?

0 likes
1 reply
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Lets say you forgot to add some file to git and then commit push your changes. All tests are fine locally, but once the changes go live they will break the site.

If you test on another server before deploying live, you can catch errors like this.

2 likes

Please or to participate in this conversation.