How can we improve Team Services?

Allow tests to be grouped by class, category, and namespace in Test Explorer

The Visual Studio team has obviously taken the time to add grouping to the new Test Explorer since we can group by test outcome and duration. However, sometimes you need to run a group of tests such as all tests in a category or namespace and this is not currently possible with Test Explorer. It would be nice if the grouping options were expanded to include at least class, category, and namespace. Then it would be possible to run all tests in a class, category, or namespace from the Test Explorer.

699 votes
Sign in
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Hughes HiltonHughes Hilton shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    Visual Studio 2012 Update 1 has added enhancements to support both grouping and filtering by Project and Traits (category). Use of these features is detailed in this blog post,

    Group and filter by Class is completed and will be available in Update 2.


    Sign in
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      • PaoloPablitoPaoloPablito commented  ·   ·  Flag as inappropriate

        I just installed Visual Studio 2013 Update 1 and I was very disappointed. Microsoft here above says "COMPLETED" but all the VS 2008/2010 good features about automatic testing are still missing.
        Just to recap them:
        - VS2010 separated test preparation and test execution, VS2013 mixes them in Test Explorer; sometimes it may be useful, but for me MOST of the time it's not useful at all. Instead, it's confusing. A filter filters both executed and "not executed" tests, so if I run a single test directly from my test source code, and then I open Test Explorer, I don't see the test and I have to clear the filter.
        - Furthermore, previous test results are mixed with new test results in the Test Explorer. This is confusing.
        - VS2010 had test results in table form, with customizable colums, allowing to see all error messages at a glance. VS2013 has not. This is a regression.
        - With VS2010 I could easily tell which test was running at a given time
        - With VS2010, running a test automatically opened the running & test results pane. Ok, I understand some developers did not like it, but I DID like it, and an option to get back the old behaviour would be useful.
        - VS2010 had an option pane to customize the automatic testing behaviour
        - VS2010 had checkboxes to select tests to run (VS2013 has just clumsy CTRL+CLICK)
        - Sometimes tests are not run at all, as if the test running process had a problem, but no errors are displayed, sometimes they are run OK.

        I'm sad about this, and unfortunately I cannot vote again on this item.

        p.s. In the past year, I manage to still use VS2008/VS2010 for testing while developing on VS2012.
        Now I'm forced by my company to move to VS2013 for a new big project, and I'll be forced to use VS2013 for testing too. :(
        People in my team miss the good interface of VS2008/2010. Please, Microsoft, bring it back.

      • PaoloPablitoPaoloPablito commented  ·   ·  Flag as inappropriate

        Microsoft says "Competed" but I tried the Update 2 and I still feel uncomfortable with the VS2012 autmatic testing infrastructure. See my post dated "November 30, 2012 11:59 a.m" below, very few things really changed in Update 2. So I still use VS 2008 and VS 2010 for many of my automatic testing chores

      • Anonymous commented  ·   ·  Flag as inappropriate

        Please add some sort of "immediate" display so that I can see what test is running?

      • JamesTJamesT commented  ·   ·  Flag as inappropriate

        I can't believe this wasn't part of the update, this is such an enormous nuisance. I wish I'd never started unit testing in VS2010...

        Is there any way MS could just reactivate the original test list editor so we can use it again? Or as a plugin? It seems this is just not a priority. it also seems astonishing we're still waiting, since the feature seems just so dead simple...

      • PaoloPablitoPaoloPablito commented  ·   ·  Flag as inappropriate

        Microsoft promised improvements to the Unit Test interface for the Update 1, in fact now the Test Explorer has new filtering capabilities. I still cannot filter by namespace like in good old Test List Editor, but I can simulate it by filtering on Full Qualified Name.

        But other things in the Unit Test world of VS 2012 leave me disappointed, they are the same things that left me disappointed before applying Update 1:

        - it looks slower to me. I created two copies of the same solution and opened it with VS 2008 and 2012 on the same Win2008R2sp1 machine (a virtual machine on VMWare LabManager, not a real machine, but it's the SAME machine, so they are on an even footing). I selected a bunch of random tests and executed them on both VS 2008 and 2012. VS 2008 executed my tests in a few seconds, with VS 2012 I had to wait at least 18-20 seconds to see the results. I retries the same tests multiple times but I got the same results. It looks like the problem is the "initial sprint", not the actual test execution. Even if I select a SINGLE test, it takes at least 5 seconds to show me the results, and then Test Explorer says that the actual execution took only 129 milliseconds! Is there some VSHOST trick to activate?

        - the beloved Test List Editor is STILL deprecated and cannot run selected tests

        - the Test Explorer still doesn't allow you to select individual tests with checkboxes like the good old Test List Editor. I often find clicking checkboxes more convenient than CTRL+clicking the desired tests.

        - there's still no test toolbar (or at least I cannot see it in the toolbar list)

        - When I'm in the source code and I run a test, I'd like to be brought immediately to the window that shows my test running, it does not happen in VS 2012 (but it used to happen in previous versions). It happens later when the test finishes: but if there's a filter in Test Explorer, I cannot see the results, I have to clear the filter.

        - If I click Debug or press F5 in previous versions, all tests in the current PROJECT (not solution) are executed. VS 2012 does not execute anything, it complains that this is a DLL and cannot be run.

        - the Test Result windows does not work as it worked in VS 2008 and 2010, it does not show anything. Test results are shown in the Test Explorer exactly like before applying the Update 1, this view is clumsly and I don't find it useful like the good old Test Result window. To see the error messages, I have to click on single failed tests, I'd like to have a look at error messages at a glance to get the big picture. This is very important for me when I try to use a TDD-like approach.

        Is there a way to customize the data shown by Test Explorer? Where? (VS 2010 has a "Test Tools" branch in the Option dialog, but VS 2012 hasn't it).

        Sorry for the long list of complaints (which, by the way, I already posted on Brian Harry's blog) but I have to say what I think. I still prefer the testing interface of VS 2008 and 2010 (and I prefer 2008 when it does not force me to click Refresh in the Test List Editor)

      • Mikhail PoliakovMikhail Poliakov commented  ·   ·  Flag as inappropriate

        In VS 2010, I often ran all tests in a test class (Ctrl-R,C), now it seems not working.

        Another pain is that the TestContext's output is unusable now, since the output content is not line -wrapped, you can't scroll it, copy/paste the result or do anything at all with this.

      • dmx707dmx707 commented  ·   ·  Flag as inappropriate

        I've never used ReSharper test window in VS 2010, I just didn't need it. VS 2010 Test Explorer had every thing I need. But now I use this plugin every day, because VS 2012 Test Explorer has literally NOTHING.

      • WillemWillem commented  ·   ·  Flag as inappropriate

        Same problem here... We have differrent TestProjects for Unittest and Intergration/database tests. In VS2010 it is possible to run tests per project. In VS2012 it is not possible.

      • Howard RichardsHoward Richards commented  ·   ·  Flag as inappropriate

        I used VS2012 for development, but load VS2010 for unit testing.

        That kind of says it all - the testing functionality in VS2012 is primitive.

      ← Previous 1

      Feedback and Knowledge Base