[TestCategory("Nightly"), TestCategory("Weekly"), TestCategory("ShoppingCart"), TestMethod()]
public void DebitTest()
{
}
To run tests that are assigned to the "Nightly" category, run the VSTest.Console.exe using the /TestCaseFilter option, or from MSTest.exe by using the /testcontainer and the /category options:
VSTest.Console.exe
Vstest.console.exe myTestProject.dll /TestCaseFilter:TestCategory=Nightly
MSTest.exe
mstest /testcontainer:MyTestprojectName.dll /category:"Nightly"
You can only use the /category option one time per command line, but you can specify multiple test categories with the test category filter. The test category filter consists of one or more test category names separated by the logical operators '&', '|', '!', '&!'. The logical operators '&' and '|' cannot be used together to create a test category filter.
For Example:
/category:group1 runs tests in the test category "group1".
/category:"group1&group2" runs tests that are in both test categories "group1" and "group2." Tests that are only in one of the specified test categories will not be run.
/category:"group1|group2" runs tests that are in test category "group1" or "group2". Tests that are in both test categories will also be run.
/category:"group1&!group2" runs tests from the test category "group1" that are not in the test category "group2." A test that is in both test category "group1" and "group2" will not be run.
MSC-JU Las Vegas Casino-Hotel - JTM Hub
ReplyDeleteMSC-JU Las Vegas Casino-Hotel. 영주 출장안마 749 Reviews. 896 인천광역 출장샵 Reviews. Hotel is great. Located in. 충청북도 출장안마 nearby 익산 출장샵 casinos and 수원 출장샵 other nearby attractions.