How to use /testlist with /testmetadata

I'm attempting to use the MSTest Runner as per this page https://confluence.atlassian.com/display/BAMBOO053/MSTest+Runner

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

This widget could not be displayed.

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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

170 views 1 3
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