How can I use PHPUnit with Google Cloud's App Engine? -


to run phpunit tests on google cloud's app engine, understand need run command on command line example phpunit --bootstrap src/autoload.php tests/moneytest.

i tried opening google cloud shell in cloud console, cannot seem locate code uploaded able execute command. when use find -name "index.php" shows me directories ./etc/docker , ./run/dockerand bunch of other locations, return permission denied message.

on other hand, tried creating special webpage test.php run tests wanted do, timeout error since tests take way long run , gets cut off after seconds.

how use phpunit tests on appengine, , not locally on machine?

app engine not best tool solve problem because app engine designed handle short-lived http requests, not running long processes. yes, there ways run jobs of 10 minutes, @ point you'll hit timeout too.

google cloud platform offers better solutions long running processes. straight-forward google compute engine can run dedicated linux instance.


Comments