开发者

PHP Automated Deployment and Testing

开发者 https://www.devze.com 2023-02-05 14:58 出处:网络
I asked a question here on automated deployment of automatically deploying java code. Our back-end Java API is accessed by a PHP web app. It would be nice to be able to automatically deploy this web

I asked a question here on automated deployment of automatically deploying java code.

Our back-end Java API is accessed by a PHP web app. It would be nice to be able to automatically deploy this web app (along with static files like CSS, JS and images) to our web server while performing automatic testing on PHP code. Is there something similar to this for PHP?

I also wonder if as part of this automated testing you can check that each actual page loads without a fatal error. I am sure I read about a google project which allows you to write page tests e.g. click on link a, go to page b etc etc.

开发者_JAVA百科

Thanks


You may want to look into using Phing for deployment which has features that allow testing with PHPUnit and/or SimpleTest


Maybe this question handling deployment strategies can help you.

Additionally, but maybe gone too far, tools like cruise control may help you to apply continuous integration, too.

PHPUnit with ant was my way to go for automated testing, which could be a vaild option for you, too since you're obviously using some java already :)


Since you're working with Java, you might consider using Hudson (also mentioned in your other question), which has the ability to execute build tasks consisting of several 'steps' One step step could be unit testing your Java App, another unit testing a PHP app, yet another deployinhg Java app, and another deploying a PHP app (and you could add some more ;P )

It has a Maven plugin, so you could actually use your existing Maven scripts.

0

精彩评论

暂无评论...
验证码 换一张
取 消