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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Bamboo TestNG Parser appears to be ignoring the custom results directory specification.

I have a build that is using Maven to run its tests. Because of the structure of the build, Maven is run several times using different testng configurations. All the test results are stored in directories like so:

$ ls -d mercury/target/surefire-reports-Tests*/TEST*.xml
mercury/target/surefire-reports-Tests.Alternatives/TEST-TestSuite.xml
mercury/target/surefire-reports-Tests.ArqSuite.Standard/TEST-TestSuite.xml
mercury/target/surefire-reports-Tests.ArqSuite.Stubby/TEST-TestSuite.xml
mercury/target/surefire-reports-Tests.DatabaseFree/TEST-TestSuite.xml
mercury/target/surefire-reports-Tests.ExternalIntegration/TEST-TestSuite.xml

Regardless of how I specify the TestNG custom resuls directory specification, either completely specified or using wildcards, TestNG says it can not find any results. However, the JUnit Parser can find the test files using the same sorts of customer results directory specifications. But beause the tests are run using TestNG, JUnit does not count the tests properly.

I am using Bamboo 5.5.1

2 answers

I'm having a similar problem in Bamboo 5.6 on our own server.  I'm not using Maven either as I have a specific tool-chain for the platform I run on.

I haven't tried the JUnit approach, but no matter what I configure in the TestNG Parser task it never finds the results.  The results are there but Bamboo isn't seeing them.

 

 

I'm having exactly the same problem here. It's completely frustrating as the logging output is now quiet as complete as I'd like:

17-Nov-2014 15:28:11
Parsing test results under /var/bamboo/xml-data/build-dir/SITE-SSBV0-MUT...

17-Nov-2014 15:28:11
Failing task since test cases were expected but none were found.

17-Nov-2014 15:28:11
Finished task 'Parse Failed Test Reports' with result: Failed

Any help would be massively appreciated.

For reference I'm using Bamboo version 5.6.2 build 4411

did anybody find a solution? 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

986 views 4 7
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