开发者

Invoking a URL and retrieving the rendered HTML page in Phing

So this is my dilemma - I am using the excellent codeigniter-simpletest library by Eric Barnes (http://github.com/ericbarnes/codeigniter-simpletest). Its perfect for my purposes, as it adds an endpoint onto the test deployment of my CodeIgniter application, from which I have a dashboard to run all my unit tests and view the results. Everything fine so far.

But now I come to integrating it into my Phing b开发者_JS百科uild script (so that a phing release call on my test build will trigger the unit tests and fail the build if any of the tests fail), and I'm stuck.

Due to the integration package to make codeigniter play nice with simpletest, the command line runner of simpletest is not an option (I don't think).

Is there a way to invoke a URL from phing, and grab the resulting HTML? I could insert some hidden HTML into the built unit tests results page and check for it from the Phing task.


A new task HttpGetTask was recently added to Phing that should help you, it will be released in the next release (2.4.3).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜