Event Testing Tools can Fall into the Trap

Link. September 8, 2006. Comments [2]. Posted in: Development | Tools

Remember all those posts about good exception handling practices? Well, it seems even the best of us can fall into that trap.

I've been working on putting the finishing touches on a socket server for one of our clients, and I've happy as to the results I've had so far and how the design ended up. I've also got good coverage of the code using NUnit, including all the socket manipulation. However, I noticed something weird today while testing again:

Every single test passes with no issues. When I run the tests for each TestFixture (class) individually, they run perfectly. However, when I run the full tests in the entire test assembly, I started getting an unhandled exception somewhere in a background thread (all tests are still green, though). Hey, no problem, let's just look at where the exception was generated and fix it! Or maybe not:



Wednesday, June 20, 2007 12:16:54 AM (SA Pacific Standard Time, UTC-05:00)
Hi,
even I am getting a similar problem. I have created a thread in the test, which is going to make a callback on a delegate..and it pretty much does the job.. But after test execution nunit starts throwing some exceptions.. Very strange.. Could u get any solution to your problem? Please let me know at rajat.khare@delphi.com
Rajat
Thursday, June 21, 2007 7:20:27 PM (SA Pacific Standard Time, UTC-05:00)
To be honest, I never bothered following up on it... you might want to just ask in the NUnit mailing lists to see if someone fixed it.
Comments are closed.

Syndicate

About

Tomas Restrepo is a software developer located in Colombia, South America. His interests include .NET, Connected Systems, PowerShell and lately dynamic programming languages. More...

tomasrestrepo @ twitter My Flickr photostream My saved links on delicious My Technorati Profile

email: tomas@winterdom.com
msn: tomasr@passport.com

View my profile on LinkedIn

MVP logo

Ads


Categories

Statistics

Total Posts: 1050
This Year: 1
This Month: 1
This Week: 0
Comments: 826

Archive

Other

Copyright © 2002-2008, Tomas Restrepo.

Powered by: newtelligence dasBlog 2.2.8279.16125

Sign In