Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo JUnit test parser fails to find test results

Aleksey Vorona August 6, 2013

If I have a build running on the same instance it was running before, Bamboo fails to find (or recognize) the unit test results. I have tested that the test results exists (with a simple Script step doing ls -l right befire the JUnit test parser is called).

If I terminate the Bamboo agent Elastic instance and run the same plan again, JUnit test parser finds the test restults.

May be relevant: I am using Gradle

2 answers

1 accepted

1 vote
Answer accepted
ssetayeshfar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2013

Hi Aleksey,

You seem to be experiencing this bug: https://jira.atlassian.com/browse/BAM-12979. The workaround for which at the moment is using a 'touch' command right before the JUnit task and maybe adding "sleep 5;" before the 'touch' command. (Please check this page as well: https://answers.atlassian.com/questions/143550/junit-parser-cannot-find-the-results-od-build.

Side Note: In cases that test results are somewhat produced from a script task that uses operations like copy or move, you should place the xml file in the repository for it to be checkout to your working directory and then use the parser directly.

Hope this helps!

Best,

Sepideh

0 votes
Aleksey Vorona August 6, 2013

As a workaround I have set an option to run builds on clean working directory. But would love to have a better solution.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events