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

MSTest Parser Not Looking in the Configured Directory

I set up an MSTest Parser Configuration in Bamboo like this: ${bamboo.build.working.directory}\tests\TestResults.trx. When running Bamboo doesn't resolve this. It only replaces $${bamboo.build.working.directory}, but does not append \tests\TestResults.trx and therefore cannot find the .trx file. Note: the .trx file is being created properly.

What am I doing wrong?

 

 

 

1 answer

1 accepted

0 votes
Answer accepted

Hi @Ariel R. Conti

Most of the tasks in Bamboo have the <bamboo_build_working_directory> path as their default path to work with data. It means that if you don't provide any path, the one used it the working directory. It also means that you can use relative paths.

The value to MSTest Test Results File/Directory field on MSTest Parser task can be either:

  • tests
  • tests\TestResults.trx
  • ${bamboo.build.working.directory}\tests
  • ${bamboo.build.working.directory}\tests\TestResults.trx

⚠️ In the options where the file TestResults.trx is not there, the task will search for any file with trx extension.

I've opened an improvement request related to this part of the task when testing it today: [BAM-20356] Improve path error handling on MSTest parser task.

 


The issue you are facing

I don't have a clear explanation for the problem you are facing, but it could be related to:

  • the file is not present (ruled out for your tests)
  • the path is still wrong
  • the test error is generated for other build and therefore not detected

Please try:

  1. Use the relative path  tests\TestResults.trx or tests.
  2. Check the option Pick up test results that were created outside of this build in the advanced section.
  3. Run another test and let us know the results you get.
  4. Please share the full error you see in the build logs.

The file exists. Bamboo doesn't find it because Bamboo isn't resolving the directory.

TestResults.pngErrorOutput.pngParserConfig.png

Can you share the Bamboo version you are using so I can run another test?

Also, could you try using the path below?

tests\Arc.We.Tests\TestResults

I just want you to run this test with NO working directory variable and the file name which are not needed in this case.

That worked. Thanks!

 

Here's the version

 

I was interested in the Bamboo Server version. It would be something like 6.7.2 or 6.8.0...

I'm glad it worked. I'm afraid this task is only accepting a relative path for that field.

The version is  6.4.1 build 60405

Like Daniel Santos likes this

Thank you!

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...

943 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