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?
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:
⚠️ 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:
Please try:
The file exists. Bamboo doesn't find it because Bamboo isn't resolving the directory.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That worked. Thanks!
Here's the version
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.