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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With