• Community
  • Products
  • Bamboo
  • Questions
  • I am using MSTest Runner to run the unit tests. However, I need to pass /category parameter to it. The MSTest Runner Task in Bamboo does no seem to have this option, can someone assist me please?

I am using MSTest Runner to run the unit tests. However, I need to pass /category parameter to it. The MSTest Runner Task in Bamboo does no seem to have this option, can someone assist me please?

I am using MSTest Runner to run the unit tests. However, I need to pass /category parameter to it. The MSTest Runner Task in Bamboo does no seem to have this option, can someone assist me please?

1 answer

1 accepted

This widget could not be displayed.

Looks like we do not provide such functionality. Alternative options are:

  • can you specify the category using environment variable? If so then you might use Environment variables field in task configuration
  • using script task

I've also created an improvement request on your behalf: https://jira.atlassian.com/browse/BAM-15032. Please vote on this to increase its visibility.

 

Thanks for your answer, I really appreciate it. I have not explored using the environment variables. However, I am using script task as an alternative for now. But the annoying thing with the script task is that, bamboo does not know, by default, the results of the tests (passed/failed). Do you happen to know a way around that? If I use an MStest Parser in conjunction with the test runner, will it do the said bit (where bamboo tells you upfront how many tests were passed/failed, etc). Have you used this combination, or do you have some suggestion regarding this? Many thanks. Awais

That's exactly what the MSTest parser task will do. It will analyze file produced by mstest.exe and feed Bamboo with data on passed/failed tests

but there is a small problem, if the tests are failing, the parser task does not get executed, or at least does not update the bamboo. Am I missing something? I dont see a point if the parser just shows 100% passed tests.

Hi Awais. You mentioned that you have got this working by using a script task. can you please provide us with what you implemented. Thanks

yes, this would really be great because the output of mstest runner always stops the process sad

run it as a final task

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

189 views 3 0
Join discussion

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