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 unable to parse results

I'm attempting to get Bamboo on-demand to run a test using MSTest. It appears to run the test but then fails parsing it afterwards. What could I be doing wrong?

Copyright (c) Microsoft Corporation. All rights reserved.

Loading C:\build-dir\DAS-TE-JOB1\PortalWebApp\Dashworks.Model.Testing\bin\Debug\Dashworks.Model.Testing.dll...

Starting execution...

Results Top Level Tests

------- ---------------

Passed Dashworks.Model.Testing.JsonModelTests.TestJsonDatePickerProperties

1/1 test(s) Passed

Summary

-------

Test Run Completed.

Passed 1

---------

Total 1

Results file: C:\build-dir\DAS-TE-JOB1\TestResults_Build_3.3.0.24.trx

Test Settings: Default Test Settings

Parsing test results...

Failing task since test cases were expected but none were found.

Finished task 'MsTest'

If I add an MSTest Parser task then that fails also. With the same error.

Starting task 'Parse results' of type 'com.atlassian.bamboo.plugin.dotnet:mstest'

Parsing test results...

Failing task since test cases were expected but none were found.

Finished task 'Parse results'

2 answers

1 accepted

1 vote
Answer accepted

Bamboo on-demand only allows the generation of .trx files. It validates this in the UI. I could run the MSTest.exe directly and possibly generate an .xml files but I chose not to do this.

I resolved this by changing the 'Results filename' value from:

"${bamboo.build.working.directory}\<filename>.trx" to just "<filename>.trx"

Maybe it was the backslash causing the issue...

This also fixed my issue

This fixed my issue too. Using "**/*.trx" works.

I wonder if it is a relative path so putting "${bamboo.build.working.directory}/...." for the Results filename causes issues. Can't find any logs that show what the full path it is trying to use but I bet that is the problem.

Chris - try generating the test file to an .xml format

Suggest an answer

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

Bamboo 7.2 is here!

I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...

438 views 5 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