How to add some perticular tests in to metadata file

Hi,

Nice to meet you all through this forum..

I would like to add some of my unit tests to metadata file which was created with the solution.I am trying to add 5 tests out of 370.But I could'nt make this happen.

please help me.

Scenario:

1.Opened Test Manager window in the solution and select 5 tests and added under list of tests .

2.Selected that list and I click on load metadat file.

3.Executed metadata file in the command console with "mstest /testmetadata:Project.vsmdi"

 4.It was executed all 370 tests with my selected 5 tests.

5.How can I reuse only these 5 tests.

Thanks



Answer this question

How to add some perticular tests in to metadata file

  • Stephen J.Vanterpool

    Hello,

    Tests go into the metadata file if they are part of one of more test list(s). Here's what you need to do:

    1) In Test Manager, right click on the "Lists of Test" node on the left hand side tree, and select "New Test List" from the context menu.

    2) Give the test list a name (say, "MyList") and a description, then click OK.

    (Your new test list should now show up on the left hand side)

    3) Single left click on "All loaded Tests" on the left hand side tree of test manager. All your tests should now show up on the right. Select the 5 tests you want, drag and drop them to "MyList" on the left hand side tree.

    4) Single left click on "MyList" on the left hand side tree of test manager to make sure the 5 tests are there.

    5) You can now execute this test list using the command line: "mstest /testmetadata:project.vsmdi /testlist:mylist"

    Thanks.

    Winnie


  • How to add some perticular tests in to metadata file