Why is my VSTest Runner test results file not being written to where I configured it?

VSRunnerConfig.PNG

12-Dec-2017 13:38:33Passed   ShortLocateCacheCollectionCreateDataRequestTest
12-Dec-2017 13:38:33Passed   ShortLocateCacheCollectionRequestTest
12-Dec-2017 13:38:33Passed   ShortLocateCacheCollectionRecoveryTest
12-Dec-2017 13:38:33Passed   DatabaseHelpersTest
12-Dec-2017 13:38:33Passed   EINT_667_TEST
12-Dec-2017 13:38:33Results File: C:\Users\bambooprod\AppData\Local\Temp\1513103893152-0\TestResults\bambooprod_CHI-BLD-W12-01 2017-12-12 13_38_16.trx
12-Dec-2017 13:38:33 
12-Dec-2017 13:38:33Total tests: 54. Passed: 54. Failed: 0. Skipped: 0.
12-Dec-2017 13:38:33Test Run Successful.
12-Dec-2017 13:38:33Test execution time: 18.8019 Seconds
12-Dec-2017 13:38:33Parsing test results under D:\agent-home\xml-data\build-dir\TRDSVR-LIN2-JOB1...
12-Dec-2017 13:38:33Failing task since test cases were expected but none were found.
12-Dec-2017 13:38:33Finished task 'Run unit tests' with result: Failed

The results file is clearly not what I configured above, any ideas please?

2 answers

0 vote

Hi David,

If you take a look at the agent logs what do you see? The directory may not have been able to be created or move the result to the result directory. 

Take a look at the logs around 12-Dec-2017 13:38:33 and see if there are any errors related to the directory you specified.  Let me know what you find.

Cheers,

Branden

0 vote

vstest.console.exe doesn't allow to specify output filename so Bamboo executes it at temporary folder and then copies generated *.trx file to folder specified by user. It's not clear from build logs, but it works like this from source code perspective: https://bitbucket.org/atlassian/bamboo-dotnet-plugin/src/d2788e3b641ccd5e5895d1adc7f115c1046df5f2/src/main/java/com/atlassian/bamboo/plugin/dotnet/tests/vstest/VSTestRunnerTaskType.java?at=default&fileviewer=file-view-default

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot