MSBUILD and MSTEST?
I have read several of the posts concerning mstest and msbuild. I have installed the power toys and have gotten the test task to work from there. I still have some questions. First, if from Visual Studio I check the tests that I want to run there are about 67 of them (not all), Is there the concept of a "category" that I can use to run these tests? Something like "BuildTests"? I don't seem to be able to save the tests that I have checked. Second if I use mstest with /test, to type in the name of 67 tests is time consuming and in the end I am not sure that the command prompt or mstest will take that big of a command line. Plus just to get the list of tests that were checked doesn't seem to be anywhere where I can cut and paste. Third, if I use the power toys and the test task it seems to only have an option to run all of the tests. I don't want all of the tests I only want the subset of 67.
Any pointers on how I can acheive my goals?
Thank you.
Kevin
Hello Kevin,
It seems that what you're looking for is being able to run test lists. As you may know, you can create test lists in the Test Manager inside Visual Studio (you could potentially put 67 of your tests in one of them). Then from a VS command prompt, you can run this test list, by specifying the following command:
mstest.exe /testmetadata:<your vsmdi file> /testlist:<the name of your test list>
I'm pretty sure that this command answers your three questions. If this is not true, or if you have further questions, please let me know
Thanks,
David Gorena Elizondo
[Team Test]
David Gorena Elizondo - MSFT wrote: |
| Hello Kevin, It seems that what you're looking for is being able to run test lists. As you may know, you can create test lists in the Test Manager inside Visual Studio (you could potentially put 67 of your tests in one of them). Then from a VS command prompt, you can run this test list, by specifying the following command: mstest.exe /testmetadata:<your vsmdi file> /testlist:<the name of your test list> I'm pretty sure that this command answers your three questions. If this is not true, or if you have further questions, please let me know Thanks, David Gorena Elizondo [Team Test] | |
I am sorry I don't see how to build a test list. I see in the right hand column (when I get the test manager in VS) options Lists of Tests, Tests Not in a List, and All Loaded Tests each with a check box next to them. I this same window if I right-click I can see "New Test List" but it is greyed out. There doesn't seem to be an option to "Save" a test list, or export one.
Kevin
Mmmh, this is probably because you are not using Visual Studio Team Suite or Visual Studio Team System edition for Testers. You need one of these in order to be able to create test lists.
Thanks,
David Gorena Elizondo
[Team Test]
Kevin,
If you open the solution and project with the 67 tests, then open Test Manager, you aren't able to create a new test list by right clicking on the node Lists of Tests? That option is greyed out, you say?
David Gorena wondered if you have Team Test or Team Suite. Can you confirm that you do? In VS2005, Test Manager was only available with those two products.
Cheers,
David