You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hey
I am having some trouble trying to get the build to parse through the .trx file. I can see the file being generated in the \Foundation\Tests\Resource.Data.EntityFramework.Test\bin\Release folder . The file name is TestResults-Rev_4626c14b7e01843d44a9afaa3184bb9ae6e6f547-Build_91
I get the error
simple 17-Jul-2017 16:01:11 Parsing test results under D:\bamboo-home\xml-data\build-dir\163842\DEV-API02-JOB1...
simple 17-Jul-2017 16:01:11 Failing task since test cases were expected but none were found.
simple 17-Jul-2017 16:01:11 Finished task 'MS Tests Parser' with result: Failed
This is the value for the Result File Name :
TestResults-Rev_${bamboo.repository.revision.number}-Build_${bamboo.buildNumber}.trx
and for the Result Directory its :
\Foundation\Tests\Resource.Data.EntityFramework.Test\bin\Release\
Am i missing something here .
Hi Stuart! How are you doing?
If you open the file in a text editor, can you see test entries in it?
Maybe Bamboo is finding it, but it is empty, for some other reason.
Hope this helps!
Thanks,
Cristiano
Hey Cristiano,
Hope you well .
The file does have test entries in it . I have changed the param for the result test file to another drive(f:\testresults\filename.trx) but the logs still shows that the parser is looking for the file in the build directory as below , am i missing something ?
\bamboo-home\xml-data\build-dir\163842\DEV-API02-JOB1.
Cheers
Stuart
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.
For those reading this later this is how I solved the problem.
In the MSTest Parser task I removed the directory from the field "MSTest Test Results File/Directory" so the value is "UnitTestResults.trx"
I then modified the task that runs vstest.console.exe so that it generated "UnitTestResults.trx" in the root build directory.
Bamboo now finds the build results file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For others reading this, if your results are in a sub-directory, use a forward slash, not a backslash in your look-up.
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.