JUnit Parser reports some but not all test results Edited

We are running Bamboo Server

Testing my code on bamboo produces an accurate output.xml file. I run 84 tests; 4 are skipped, 4 fail, and 76 pass.

The JUnit parser returns that the build failed, red bar, that's accurate. But, the "Build and Unit Test" page for the job says 54 tests in total ran (not the actual 84), and it shows no Failed tests: BambooCapture.PNG

The tests that are missed that are failing are named:

test_flow_frame_signal_for_flow_through_flow_cell
test_flow_frame_signal_for_bypass_flow
test_syringe_start_button_signal_for_wash_flow
test_syringe_start_button_signal_for_air_flow

These have kind of long names. Doest Bamboo's JUnit Parser fail to count tests with names 36 characters long or longer? (54 of my tests have names that are less than 36 characters).

Any other ideas as to the discrepency between total tests and passed tests?

Also, how can I file a bug report with Atlassian?

Thank you!

1 answer

0 vote
Cristiano Oliveira Community Champion Jul 04, 2017

Hi Sean! How are you doing?

I have seen this behavior when tests have duplicate names. In order to make sure Bamboo does't show duplicates, they prefer to omit them.

Does it make sense in your scenario?

Hope this helps!

Thanks,

Cristiano

Thank you Cristiano,

Atlassian looked into it and created a bug report:

https://jira.atlassian.com/browse/BAM-18510

Their assessment might be related to what you are saying. My tests have unique names, but the classname for 30 of the tests is null.

I tests and create the xml output using pytest which doesn't require a class. While they fix the bug I can just put those tests into a class.

Thanks for your suggestion!

Sean

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,562 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you