|
VS Pending Tests |
|
I'm a big fan of unit testing, but I started using Visual Studio only a couple of months ago.
So, I was really frustrated at the unit testing framework and its integration with VS
when time and again it would hang during test execution.
The test project would start a run, but all tests would stay indefinitely in the "pending" state,
the status bar (in the test summary window) would scroll round and round, and nothing else would happen.
Moreover, there's no option of stopping nor restarting of such a run (or, at least, none that I could find).
The only workaround that I could use was to restart VS,
but then my level of frustration went to new heights when tests would hang right after a (lengthy, might I add) restart...
Having other things to do, this meant that for a while I left the unit testing tasks alone (which I really hate doing).
But one day, while searching for a solution to a different problem, I stumbled on the following discussion on StackOverflow:
Visual Studio 2008 randomly hangs on test run.
There, the last response suggested the following hotfix from Microsoft:
Unit Tests Never Complete - VSTestHost Hangs at 100% CPU.
This fixed the problem. Well... almost fixed it
(I'm still having problems once is every 10-20 runs; and I still can't debug tests... :-( ).
But unit tests are, at least, usable now...
So, I just thought that another blog entry might help others in finding the (partial) solution to this issue.
HTH
Top
|
Comments |
Alas! No comments yet...
|
|
Top |
|
Top
|