How to use /testlist with /testmetadata

I'm attempting to use the MSTest Runner as per this page

I enter the path to the <solutionName>.vsmdi file and this appears to work. However, I need to use the /testlist option in order to filter which tests are run. There does not appear to be an obvious place to enter this extra parameter in the UI. I've tried simply adding it after the path to the metadata file but this doesn't work.

This seems like something that should be simple to do and from the command line it is - worked first time. I would like to get it running via the MSTest Runner however. Is this possible?

1 answer

1 accepted

I resolved this issue by setting up a 'Command' task for the MsTest executable and calling it directly. I fail to see any benefit with using the MSTest Runner wrapper.

The wrapper is just an executable with some of the parameters broken out, it was probably added to directly compete with competitors that have similar plugin/macro/etc.

I would setup an executable to MsTest instead of using a command task; that way you can have different server capabilities, audit which jobs use that executable, and can easily change the source/location of the executable if you upgrade versions. Easier to plan for the future proactively than retroactively.

I've setup MsTest.exe as an executable for the build image. Is this what you are suggesting? I then use a task of type command, selecting MSTest from the Executable drop-down

Yeah, I saw you say 'Command' but for some reason I had 'Script' in my head.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,786 views 0 6
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