最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - JSTestDriver and Continuous Integration - Stack Overflow

programmeradmin2浏览0评论

I am trying to use JSTestDriver to automate my Javascript tests with Hudson as the Continuous Integration backend. I'm aiming to get Hudson to at least produce a report on the test results, with failing a build upon failed test as the most desirable oute.

I did a quick search on the web, and found that Hudson doesn't appear to have a direct plugin for JSTestDriver (it only has one for TeamCity). I was thinking of using Hudson to monitor the javascript tests as an external job, but I have a feeling that this is more plex than required.

Does anyone have experience with/advice to the above scenario?

Thanks.

I am trying to use JSTestDriver to automate my Javascript tests with Hudson as the Continuous Integration backend. I'm aiming to get Hudson to at least produce a report on the test results, with failing a build upon failed test as the most desirable oute.

I did a quick search on the web, and found that Hudson doesn't appear to have a direct plugin for JSTestDriver (it only has one for TeamCity). I was thinking of using Hudson to monitor the javascript tests as an external job, but I have a feeling that this is more plex than required.

Does anyone have experience with/advice to the above scenario?

Thanks.

Share Improve this question edited Oct 10, 2012 at 15:32 RichH 6,1382 gold badges39 silver badges62 bronze badges asked Oct 15, 2009 at 5:47 BeraCimBeraCim 2,3478 gold badges50 silver badges78 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 6

Found this article that was recently published on this topic. Looks like Hudson supports JsTestDriver via its core functionality. You just have to know how to configure it.

http://cjohansen.no/en/javascript/javascript_continuous_integration_with_hudson_and_jstestdriver

Does the xUnit plugin cover you?

In general, Hudson testing plugins do not run the tests - you build script should run the tests itself. Then Hudson picks up the report that is generated, and renders it nicely in the Hudson UI.

Try this thread: Unable to get hudson to parse JUnit test output XML

Basically jstestdriver generates you JUnit-pliant XML results, when you may further use in your CI system of choice.

发布评论

评论列表(0)

  1. 暂无评论