How to save unit test output in Jenkins

We managed to get Jenkins to parse our XML output from our tests correctly, and also include error information when it is. Therefore, you can see directly in TestCase in Jenkins the error that occurred.

We would like Jenkins to keep log output, which is basically the console output associated with each case. This will allow everyone to see the actual console output of each test case, failed or not.

I have not seen a way to do this.

* EDIT *

Clarification. I want to see the actual test result directly in the Jenkins interface in the same way as with the error, but for all the output. I don’t want Jenkins to save the file as an artifact.

* END OF EDITING *

Can anyone help us with this?

+5
source share
4 answers

In the report <result> Publish a report on the results of the work of JUnit (Actions after assembly), check the box Retain long standard output/error.

, . ( , , trace.) , , , . , , , , !

enter image description here

+4

- , , .

+1

, , - Android Jenkins.

http://code.google.com/p/the-missing-android-xml-junit-test-runner/ Android. XML JUnit .

"adb pull", , Jenkin . XML , .

, "Execute Shell", , .

+1

Since Jenkins 1.386 a change was mentioned to save a long standard output / error in every build configuration. Therefore, you just need to check the box after post build.

http://hudson-ci.org/changelog.html#v1.386

+1
source

All Articles