如何从Hudson运行SimpleTest? [英] How do you run SimpleTest from Hudson?

查看:151
本文介绍了如何从Hudson运行SimpleTest?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CakePHP做一些工作,并希望使用Hudson。我可以运行各种插件,但我没有看到任何SimpleTest。直到蛋糕2.0出来,他们移动到PHPUnit,我想知道如何运行SimpleTest与哈德逊。

解决方案

这是一个老问题,但我认为我会给我的输入...



我们仍然坚持在蛋糕1.3和使用Jenkins。我们使用 stagehand-test runner 运行测试并生成junit报告。 / p>

你可以让你的ant build运行如下:
cakerunner --cakephp-app-path = src / app --log- junit = build /然后在Jenkins中,您将需要使用发布JUnit测试结果报告,而不是发布测试(发布测试结果/测试结果报告)工具结果报告其中列出了PHPUnit和其他框架。



我做了一个类似的

I'm doing some work with CakePHP and want to use Hudson. I can run all kinds of plugins but I don't see anything for SimpleTest. Until Cake 2.0 comes out and they move to PHPUnit, I'd like to figure out how to run SimpleTest with Hudson.

This is an old question, but I thought I'd give my input...

We are still stuck on cake 1.3 and are using Jenkins. We use stagehand-test runner to run the tests and generate the junit report.

You can have your ant build run something like the following: cakerunner --cakephp-app-path=src/app --log- junit=build/test-results/junit.xml -R src/app/tests

Then in Jenkins you will need to use the 'Publish JUnit test result report' instead of "Publish testing tools result report" where PHPUnit and other frameworks are listed.

I made a similar question not too long ago.

这篇关于如何从Hudson运行SimpleTest?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆