Caves Travel Diving Graphics Mizar Texts Cuisine Lemkov Contact Map RSS Polski
Trybiks' Dive Texts Testing VS Pending Tests YAC Software
  Back

List

Charsets

Charts

DBExpress

Delphi

HTML

Intraweb

PHP

Programming

Rhino Mocks

Software

Testing

VB.NET

VCL

WPF

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

Add a comment (fields with an asterisk are required)
Name / nick *
Mail (will remain hidden) *
Your website
Comment (no tags) *
Enter the text displayed below *
 

Top

Tags

Testing


Related pages

Accessing private and protected members - PrivateObject and PrivateType

Get the TreeViewItem for an Item in a WPF TreeView

Double Clicks in WPF TreeView Controls

Output in MSTest Tests (VS 2010)

Checking Property Change Notifications

Checking "Dangling" Event Handlers in Delphi Forms

Rhino Mocks's AssertWasCalled in VB.NET

First steps with Rhino Mocks (in VB.NET)

Automated GUI Testing

Automated GUI Testing in VMs

Automated Testing of Window Forms

Detecting Memory Leaks with DUnit