Geeks With Blogs
Colin Bowern ... more of the usual bool

Converting from NUnit to MSTest I've seem to have hit a little snag.  I can't run MSTest on the command line while focusing on a subset of the tests.  MSTest introduces the concept of Test Lists which allows me to segregate the tests that will run on the build server versus the ones that require a development machine or test environment for smoke testing. 

It seems when you run the command line with the specified test list:

mstest /testmetadata:tests.vsmdi /runconfig:localtestrun.testrunconfig /testlist:BuildVerificationTests

It finds the tests in the list but it cannot find the test to execute:

Microsoft (R) Test Execution Command Line Tool Version 8.0.50727.42
Copyright (C) Microsoft Corporation 2005. All rights reserved.

Loading tests.vsmdi...
Starting execution...
Test CheckExpectedTypeGoodParameters cannot be found.
No tests to execute.

If you're puzzled, so am I.  Feel free to vote for the issue on the MSDN Product Feedback bug I've filed.

MSDN Product Feedback Bug: MSTest Command Line Error - Test 'x' cannot be found.


Posted on Sunday, March 12, 2006 12:59 PM Build and Deployment | Back to top

Comments on this post: MSTest using a Test List via Command-Line

# re: MSTest using a Test List via Command-Line
Requesting Gravatar...
The "TestList" it's referring to is NOT the ordered test but the test list you create in the Test List Editor. Double click the tests.vsmdi solution item. Right mouse click "Lists of Tests" and select "New Test List". Drag and drop the test you want to test then name the test list. Use this name in the command line.
Left by Binh H. Nguyen on May 10, 2011 1:31 PM

Your comment:
 (will show your gravatar)

Copyright © Colin Bowern | Powered by: