Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sahar_mkr's avatar

Test laravel codes

hi everyone, I have a laravel project on server on direct admin panel, I just want to write tests for any of my api's, I made a MyTest.php file in the Feature folder of the project, I want to run these tests now, but I don't have any access to something like command prompt or... to run php artisan test command, I just have the url name of any api's and a postman in order to test directly the routes in it, what can I do? I can not use ssh either. thank you so much

0 likes
1 reply
tisuchi's avatar

@sahar_mkr This is my thought:

  1. There is no point to run your test in production.
  2. You just run your test locally first.
  3. If your test is passing locally, run the test during the deployment (if possible, basically in the pipeline)
  4. If everything passes, then deploy your code in production.

For your case (since you don't have access ssh, I assume that you don't have the ability to setup the pipeline also), therefore you can run your test locally, and deploy in production once everything is passed.

1 like

Please or to participate in this conversation.