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

MSTest

PHP

Programming

R

Rhino Mocks

Software

Testing

UI 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

MSTest


Related pages

AssertWasCalled and Methods Called Multiple Times

AssertWas[Not]Called and Object Properties

Rhino Mocks's AssertWasNotCalled

Visual Studio - moving coded UI tests to a new / different project results in null reference exceptions

PrivateObject and Out/ByRef parameters

PrivateObject, WithEvents, and generics

Accessing private members of base classes

PrivateObject and WithEvents

Accessing private and protected members - PrivateObject and PrivateType

VS - Test Run Error - "COM object that has been separated from its underlying RCW cannot be used"

Get the TreeViewItem for an Item in a WPF TreeView

Output in MSTest Tests (VS 2010)

Automated WPF tests and "Invalid URI: Invalid port specified."

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