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

Cannot get MSTest task to run correctly

Benjamin Rice Dec 27, 2011

I created an MSTest task in my Bamboo job. The task fails with the report that the directory name is invalid. However, when I run the same command-line command that Bamboo is running from the command prompt, the test runs successfully. Here's what the command looks like:

C: Program Files (x86) Microsoft Visual Studio 10.0 Common7 IDE MSTest.exe /testcontainer:EMSTests bin Debug EMSTests.dll /resultsfile:EMStestresults.trx

Thanks!

3 answers

0 votes
Joe Clark Atlassian Team Dec 28, 2011

What is the current working directory when executing the bamboo task? If "EMSTests" is the root directory of your source repository check-out, then maybe the /testContainer you actually want is just "bin\Debug\EMSTests.dll"?

0 votes
Jason Kirton Jul 10, 2013

I am running into the exact same thing. If I run the the same command line command it works but in Bamboo I get the error "The directory name is invalid.". I have triple checked that the path is correct and that the casing is correct as well. Please advise.

10-Jul-2013 16:06:51 Microsoft (R) Test Execution Command Line Tool Version 10.0.30319.1
10-Jul-2013 16:06:51 Copyright (c) Microsoft Corporation. All rights reserved.
10-Jul-2013 16:06:51
10-Jul-2013 16:06:51 Loading CsvCompareTest\bin\Debug\CsvCompareTest.dll...
10-Jul-2013 16:06:51 CsvCompareTest\bin\Debug\CsvCompareTest.dll
10-Jul-2013 16:06:51 The directory name is invalid.
0 votes
Sean Dockery Aug 01, 2013

If you are running Bamboo as a service, try configuring the service to run as an actual user rather than the built-in SYSTEM account.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

923 views 12 15
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