开发者

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

开发者 https://www.devze.com 2023-03-12 09:16 出处:网络
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 wit

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 开发者_Go百科an entire new plugin?

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


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.


You could try the xUnit plugin. On their wiki page it says that it can handle txt and csv files using custom style sheets. In theory this should work for your test reports t least. I have never tried that though.

As for coverage I am not aware of any plugins that can deal with arbitrary coverage tools.

If the HTML reports the tools produce are usable you could use the HTML Publisher plugin to link those reports in your job, and make them accessible from Jenkins. Not as nice an integration as a test tool plugin can provide, but depending on your expectations it might be enough.

Otherwise you will probably be forced to write a custom plugins. You could also try a request on the Jenkins Mailing List, maybe someone is working on such a plugin already.

0

精彩评论

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

关注公众号