Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual Studio 2012 test categories hierarchy (Test Explorer)
    text
    copied!<p>I am testing a quite big project (C#, VS2012), and I need to arrange my unit test in test hierarchy (eg.: now I have 43 test cases). I do really need the hierarchy.</p> <p>I have test categories defined already, and the test explorer shows test cases by traits. I have categories in this way (one test have several categories)</p> <ul> <li>TestCase01: MainTestType, SubTestType, SubsubTestType</li> <li>...</li> <li>TestCase10: MainTestType, SubTestType, SubsubTestType</li> <li>TestCase11: MainTestType, SubTestType2, SubsubTestType2</li> <li>...</li> <li>TestCase15: MainTestType, SubTestType2, SubsubTestType2</li> </ul> <p>Defined like this:</p> <pre><code> [TestMethod] [TestCategory("MainTestType")] [TestCategory("SubTestType")] [TestCategory("SubsubTestType")] public void MyTestCase() { /* etc. */ </code></pre> <p>But Test Explorer shows the next:</p> <ul> <li>MainTestType: all tests having category MainTestType</li> <li>SubTestType: all tests having category SubTestType</li> <li>etc...</li> </ul> <p>So I really miss the hierarchy. I have tried "Cat1\Cat2\Cat3" or even with /. But no hierarchy displayed. Do you know how to do it, or a free addon which can do it for me? </p> <p>I also will need these type of categorization, because we run often tests from command line, and mstest.exe can run tests for one category (eg all MainTestType, or SubTestType). (I stick to mstest because half of the team uses vs2010). But the solution is enough for vs2012.</p> <p>Thank you in advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload