Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

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

Lots of Tests, VSTest.Console, and trx Result File Parsing Edited

Goals:

  1. Not specify tests through checked in code
  2. Use VSTest.Console
  3. Execute all tests in a single result file
  4. Have Bamboo read results

I have 1-3 working using a powershell script I wrote.  I search for dll's named with a specific pattern, such as *Tests.dll.  I pass this array into the execution of VSTest.Console, and I get a single trx file in folder named TestResults which VSTest.Console creates.

Problem 1, I can't specify the name of the trx file.  I believe this can be done with a settings file, but I'm trying to have all the configuration in Bamboo so that changes don't require me branching and doing pull requests, etc.  

So I'm attempting to fix this by renaming the file to result.trx and setting up a MSTest Parser. Problem is, it never finds the file.  

In the MSTest Parser task, I've specified the "MSTest Test Results File/Directory" value as result.trx and TestResult\result.trx and ${bamboo.build.working.directory}\TestResults\result.trx. Unfortunately, none of it works.  

2 answers

1 accepted

0 votes
Answer accepted

FYI, I got this working by copying the result.trx file to the root bamboo build folder and removing all pathing information from the MSTest Parser task.

The error I get from the MSTest Parser task is; Could not find test result reports in the C:\Bamboo\Agent-3\xml-data\build-dir\DEV-MAS-DEV directory.

I have the same error

 

14-wrz-2018 13:40:18Parsing test results under C:\TME\bamboo\xml-data\build-dir\SSMU2-SSPPGM-JOB1...
14-wrz-2018 13:40:18

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

 

 

there is any solution

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

675 views 1 6
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