...EDIT... On Sunday, November 11, 2012 4:58:15 PM UTC+3:30, mrz wrote: > > Hello everybody, > > I am trying to use xUnit plug in for my Qt unit test project,but I cannot > make it work... > > Here is What I've done so far: > > First of all, I make my unit test project with QMakeBuilder plug in, then > I add an Execute Shell build section > where I first rm -f the testResult xml file, following to that, I run the > test binary with -xunitxml flag to have it generate > xml file for me And I name the xml file testResult.xml, in other word, > ./tst_unittest > -xunitxml > testResult.xml. > Finally in Post Build Action, I select Publish xUnit test result
AND SELECT QTTESTLIB > and specify the pattern as *.xml. > > Building the job will get me the following error: > > [xUnit] [INFO] - Starting to record. > [xUnit] [INFO] - Processing QTestlib-Version N/A > [xUnit] [INFO] - [QTestlib-Version N/A] - 1 test report file(s) were found > with the pattern '*.xml' relative to '/home/guest/QT/unitTest' for the > testing framework 'QTestlib-Version N/A'. > [xUnit] [ERROR] - The converted file for the result file > '/home/guest/QT/unitTest/testResult.xml' (during conversion process for the > metric 'QTestlib') is not valid. The report file has been skipped. > [xUnit] [ERROR] - The plugin hasn't been performed correctly: > hudson.util.IOException2: Failed to read > /home/guest/QT/unitTest/generatedJUnitFiles/QTestlib/TEST--735044756.xml > Build step 'Publish xUnit test result report' changed build result to > FAILURE > Build step 'Publish xUnit test result report' marked build as failure > Finished: FAILURE > > and TEST--735044756.xml only contains the below line: > <?xml version="1.0" encoding="UTF-8"?> > > Anyone has a clue where am I doing what wrong? > > On a different note, I have added the log thingi in the system log Jenkins > menu, it doesn't seem relevant to this problem though... at least IMO > > Regards >