Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I show Expresso and node-jscoverage output in Hudson?

We use Hudson (well, Jenkins now) for CI. I have just started a project based on Node.js, and am investigating Expresso and Gently (testing and mocking). I really like the fact that Expresso works with node-jscoverage to generate code coverage reports.

Has anybody started a project to display Expresso and node-jscoverage reports (or JScoveage) in Hudson? Failing that, is there some documantation on what kind of output Hudson is expecting, short of inventing an entire new plugin?

In summary, I'm looking for two types of output here. Test results (like junit) and coverage reports (like Cobertura).

like image 528
abendigo Avatar asked Jun 10 '11 02:06

abendigo


1 Answers

Do Expresso and node-jscoverage produce xml output? If so,

Jenkins and cFix unit testing (C++)

Following the above, you could convert your xml output to formats that junit understand (for tests, using an XSLT), and convert your coverage xml output into cobertura format (again, using XSLT).

See this also: http://www.van-porten.de/2009/05/cunit-tests-in-hudson/

for a sample XSLT.

like image 133
Sagar Avatar answered Nov 14 '22 23:11

Sagar