It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

jUnit test results

I want to publish jUnit test results. Is using an Atlassian product a good way? What product?

2 answers

0 votes
Timothy Community Leader Jan 26, 2014

Bamboo could be a solution for you. Once the JUnit's are executed as tasks, you could make them artifacts. You can then deploy them using Bamboo's depolyment funcitonality.

couple of things:

1) I dont know what "JUnit's are executed as tasks" means. I know what a task is. I can run "Ant", but I guess you mean "Execute JUnit test cases with 'ant test'".

2) Various projects including "Deployment Projects"...wow! Lot's of information to obsorb. I wish there was a "Quick Start Guide" that just told me what to do. I really hate guessing.

Since I found the Android instrument for producing JUnit test results in XML, and have finally figured out how to use Ant to fetch the results from the emulator, and finally figured out how to use the JUnit Parser in Bamboo, I got 'something'....but still not sure if this is 'best practice'.

When buying bamboo, you should be 'told what to do' instead of trying to figure it out. Why does everyone have to recreate the wheel? Let's get best practices out there. Bamboo and Atlassian should differentiate itself from Jenkins/Hudson. Don't make people PAY to figure out how to use your software (Atlassian University). You should invest in this training for customers and remove the roadblocks to customer adoption.

The answer:

install an 'instrumentation' in the android manifest for the 'missing junit xml generator' from GitHub.

Google it.

Then after the instrumentation is installed, you can run:

ant emma instrument install test fetch

The last 'fetch' is a custom.properties target to pull the XML files from the emulator

Then, in the Ant build job, you can optionally turn off the 'this build produced junit test results' and use the extra JUnit Parser, or just ust the Test results from the Ant job itself.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Next-gen

Keyboard shortcuts have arrived for next-gen projects!

...ollected feedback from users around the lack of shortcuts, and we’re here to address that: In next-gen projects, I miss the keyboard shortcuts badly. This is particularly true on the Board, but also i...

279 views 2 5
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you