3

I want to use Hudson CI for my c-project, which also uses CUnit. However I've also come to understand that there is currently no plugin that supports CUnit. So I read on the internets that this might be possible using the xUnit plugin by translating between CUnit and JUnit, but using the supplied file yields an error.

[xUnit] [ERROR] - The plugin hasn't been performed correctly: Conversion error Error to convert the input XML document

So my question is; has anyone successfully run CUnit tests in hudson. And, in that case, how?

3
  • What version of Hudson & xUnit are you using?
    – Sagar
    Dec 2, 2010 at 19:53
  • Ah, I'm running Hudson 1.386 and xUnit 1.12
    – mahju
    Dec 3, 2010 at 6:56
  • If you can, try comparing your resulting xml file with a JUnit xml file. Also make sure your xml file is valid @w3schools.com/xml/xml_validator.asp
    – Sagar
    Dec 3, 2010 at 17:19

2 Answers 2

1

@Nubsis: Did you by any chance copy & paste from the listing? The downloadable file seems to work just fine. If you found errors in it let me know so I can fix them and put an updated version on my blog so others don't run into the same problems you had.

1
  • Yes, the errors seems to have been in the listing. The downloaded file seems to work fine, so it seems that it was indeed the highlighting that broke it.
    – mahju
    Feb 8, 2011 at 7:48
0

As it turns out, there were some syntax errors in the xslt-file provided in the link. After correcting this and some identifiers it worked out well.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.