Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Group tests by class & namespace in Test Explorer

In Visual Studio 2010, I could list my tests by full name. That way, my tests would be sorted by object, then method, then individual test case when I structured the tests as shown here:

http://haacked.com/archive/2012/01/02/structuring-unit-tests.aspx

However, in Visual Studio 2012 Ultimate RC Test Explorer, it lists the tests by test name (instead of "WidgetMaker.ctor.HappyPath", it just shows "HappyPath"). Is there a way to change the Test Explorer to show full names instead of the test name? Thanks.

like image 707
bryanjonker Avatar asked Jun 15 '12 20:06

bryanjonker


People also ask

How do you run test cases group wise?

Groups in TestNG are specified in testng. xml under the <suite> or <test> tag. Groups under the <suite> tag apply to all the tests included under the <test> tag in that particular <suite>. To group tests in the source code, you have to use the @groups attribute of the @Test annotation.

What is grouping in testing?

In statistics and combinatorial mathematics, group testing is any procedure that breaks up the task of identifying certain objects into tests on groups of items, rather than on individual ones.

Which is the correct way to assign a test method for more than one group?

To run a group of test cases from the collection of test cases, we have to define <groups> in the testng xml file. Here the testNG xml contains multiple groups QuestionAnswer and Jobs to be associated to a single Test.

How do I find groups in TestNG?

Groups are specified in the testng. xml file with <groups> tag. Groups can be specified either in the <suite> tag or <test> tag. If the <groups> tag is specified inside the <suite> tag, then it is applied to all the <test> tags of XML file.


1 Answers

Here is the answer in the end of the post :

http://blogs.msdn.com/b/visualstudioalm/archive/2012/03/08/what-s-new-in-visual-studio-11-beta-unit-testing.aspx

So, wait and see/hope...

EDIT : In the mean time, you still can have a similar interface by openning the *.vsmdi file in your solution items.

like image 138
Nicolas Penin Avatar answered Sep 21 '22 17:09

Nicolas Penin