Starting then running all unit tests in a solution can take a very long time.
We have over 200 projects, 2900+ unit tests. It takes over a minute some times to get to the point where it can start listing all the unit tests in the test window, and start executing. We have latest gen Core I7, 8GB 64 bit windows, and it is still a pain. Maybe this area needs 're-imagining', as I can understand the complexities of managing this large number of projects/tests, but it is not working well for us.
I have added an item to the product backlog to enable parallel test execution. In VS 2012, we have significantly improved performance of unit tests.
6 comments
-
Michelle Verner
commented
I am disappointed that the VS team response has absolutely nothing related to the question. The question is about the "Discover test" feature, which is insanely, inexcusably slow. This is NOT related to parallel test execution. VS team, please respond to the question about "Discover test" latency.
-
ThomasK
commented
Hmm, maybe we have more tests now (~13500), but VS2012 UPD1 is not faster for us.
------ Discover test started ------
WriteTestCaseStarted
WriteTestCase Took Time = 152849,2834
========== Discover test finished: 6377 found (0:02:45,1095093) ========== -
Simon Vane
commented
We are having the same issue. Even when the projects we are testing do not change and we just add another test it's taking 40 seconds before running of a single test starts. Many of our tests conflict when running in parallel so that solution doesn't work for us. This is way slower than in VS2010. VS2012 makes testing painful in may ways but taking 40 seconds before a single test starts to run is the worst.
-
Thomas K
commented
We have >120 projects in the solution, but starting an added/edited test alone takes > 2 mins at times, which is really painful.
------ Discover test started ------
WriteTestCaseStarted
WriteTestCase Took Time = 122409,2397
========== Discover test finished: 5933 found (0:02:09,1119099) ========== -
David Grenier
commented
Parallel Test execution already works in VS 2010. Enabling it also speeds up the time it takes before testing actually starts (not speaking about the test list window here).
-
David Grenier
commented
Note here that if you enable parallel test runs, the pending time is much faster even if running a single test.
Obviously your tests have to be parallel-friendly.