Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSTestDriver and Continuous Integration

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 outcome.

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 complex than required.

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

Thanks.

like image 966
BeraCim Avatar asked Oct 15 '09 05:10

BeraCim


3 Answers

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

like image 139
LLBBL Avatar answered Oct 22 '22 00:10

LLBBL


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.

like image 41
Michael Donohue Avatar answered Oct 21 '22 23:10

Michael Donohue


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

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

like image 39
miek Avatar answered Oct 22 '22 01:10

miek