Alex Rivera | Logout

How to keep the unit test output in Jenkins

Asked 2011-08-04T16:17:04.860
9

We have managed to have Jenkins correctly parse our XML output from our tests and also included the error information, when there is one. So that it is possible to see, directly in the TestCase in Jenkins the error that occurred.

What we would like to do is to have Jenkins keep a log output, which is basically the console output, associated with each case. This would enable anyone to see the actual console output of each test case, failed or not.

I haven't seen a way to do this.

* EDIT *

Clarification - I want to be able to see the actual test output directly in the Jenkins interface, the same way it does when there is an error, but for the whole output. I don't want only Jenkins to keep the file as artifact.

* END OF EDIT *

Anyone can help us on this?

Edit
Report

1 Answer

1

Not sure if you have solve it yet, but I just did something similar using Android and Jenkins.

What I did was using the http://code.google.com/p/the-missing-android-xml-junit-test-runner/ to run the tests in the Android emulator. This will create the necessary JUnit formatted XML files, on the emulator file system.

Afterwards, simply use 'adb pull' to copy the file over, and configure the Jenkin to parse the results. You can also artifact the XML files if necessary.

If you simply want to display the content of the result in the log, you can use 'Execute Shell' command to print it out to the console, where it will be captured in the log file.

answered 2011-09-05T00:17:37.707

Your Answer