Multi Threaded Unit Tests with Osherove.ThreadTester

My blog has moved. You can view this post at the following address: http://www.osherove.com/blog/2007/6/22/multi-threaded-unit-tests-with-osherovethreadtester.html
Published Friday, June 22, 2007 12:28 PM by RoyOsherove

Comments

Friday, June 22, 2007 12:45 PM by Tom Opgenorth

# re: Multi Threaded Unit Tests with Osherove.ThreadTester

A thousand thanks for this!  I'm soon to be needing this on my current project.

Saturday, June 23, 2007 6:05 PM by ISerializable - Roy Osherove's Blog

# Roy's Open Source Projects

Open Source Projects I am Involved in (Let me know if you' re interested in contributing to one of these

Sunday, June 24, 2007 2:53 AM by Gil Zilberfeld

# re: Multi Threaded Unit Tests with Osherove.ThreadTester

Roy,

I wish I had this a year ago. I then wrote something a lot more primitive than this for checking timeouts and race conditions.

Well done.

Gil

Sunday, June 24, 2007 4:59 AM by Hermann Klinke

# re: Multi Threaded Unit Tests with Osherove.ThreadTester

I've created something similar some time ago where  your TestFixture derives from a class and then you can just apply attributes (in addition to the TestAttribute) to specify the "RunBehaviour". There is no need to learn a new model. Tested it with NUnit and MbUnit. It uses your interception framework.

Sunday, June 24, 2007 5:07 AM by RoyOsherove

# re: Multi Threaded Unit Tests with Osherove.ThreadTester

Hermann: I'd love to see it.

I thought about going that route, but it seemed too.. non intuitive, but I'd love to get my hands on that.

Roy

Sunday, June 24, 2007 8:51 AM by Hermann Klinke

# re: Multi Threaded Unit Tests with Osherove.ThreadTester

Roy, I'll send it to you if you send me your e-mail-address (my e-mail is in the url). I can't attach files in your contact page.

Sunday, June 24, 2007 11:32 AM by RoyOsherove

# re: Multi Threaded Unit Tests with Osherove.ThreadTester

Hermann: I'm always reachable at :

Roy at osherove.com

Sunday, June 24, 2007 4:39 PM by ISerializable - Roy Osherove's Blog

# Looking for open source contributors to my projects

I've been thinking a lot about doing some active open source development, mainly sharing and getting

Monday, June 25, 2007 8:42 AM by Console.Write(this.Opinion)

# Resumo da semana - 25/06/07

Resumo da semana - 25/06/07

Monday, June 25, 2007 2:34 PM by ISerializable - Roy Osherove's Blog

# ThreadTester with new Ability: StopWhenTrue() and thread polling

I've updated The ThreadTester Library with a new ability: StopWhenTrue(). It allows you to periodically

Monday, June 25, 2007 3:01 PM by Tom Opgenorth

# re: Multi Threaded Unit Tests with Osherove.ThreadTester

I notice the reference to Mono.Cecil in your Tests folder.  Is this necessary?  When I removed the reference (and the UsingCecil tests), everything still seemed to compile okay.

Monday, June 25, 2007 6:24 PM by RoyOsherove

# re: Multi Threaded Unit Tests with Osherove.ThreadTester

Tom: The Cecil is just something I've been playing with. There is no dependency on Cecil at the moment (and I don't see anhy for the near future)

Friday, June 29, 2007 1:15 PM by Sam Gentile

# New and Notable 176

TGIF!! I am super busy right now designing a multi-CPU/multi-threaded Parallel Calculation Engine and

Monday, July 16, 2007 1:07 PM by Greg

# re: Multi Threaded Unit Tests with Osherove.ThreadTester

I've done this a couple of times, but much less general. I've been going to put something reusable together but you've beat me to it and done it well. Thanks Roy!

Thursday, August 02, 2007 11:40 AM by Ben

# re: Multi Threaded Unit Tests with Osherove.ThreadTester

Great little abstraction. Perfect for my needs.

Just a note FYI:

Some of the source classes have a "using NUnit.Framework" statement which isn't being used and as such if not installed on the clients machine throws an exception at runtime.

Also, the "public void StartAllThreads(int runningTimeout)" method has a dependency on NUnit which it doesn't need to... Just throw an exception instead of doing an NUnit.AssertFail().

Once again, great work.

Wednesday, November 07, 2007 7:33 AM by Azra [Florent Santin]

# [Teched 2007] Unit Testing Tips and Techniques with Visual Studio 2008 and the .NET Framework

Roy Osherove - SELA Group www.ISerializable.com (blog) Retour a une activit�E9; plus s�E9;rieuse.

Friday, November 09, 2007 12:29 PM by Nelson Correia

# TechEd Developers 2007 @ Barcelona

Friday, November 09, 2007 12:37 PM by Nelson Correia

# TechEd Developers 2007 @ Barcelona

Friday, November 09, 2007 12:42 PM by Nelson Correia

# TechEd Developers 2007 @ Barcelona

Nesta última semana estive em Barcelona, numa conferência da Microsoft, o TechEd Developers . Em primeiro

Friday, November 23, 2007 9:33 AM by DotNetKicks.com

# Multi Threaded Unit Tests with Osherove.ThreadTester

You've been kicked (a good thing) - Trackback from DotNetKicks.com

Tuesday, December 02, 2008 8:43 PM by Sam Gentile's Blog

# New and Notable 176

TGIF!! I am super busy right now designing a multi-CPU/multi-threaded Parallel Calculation Engine and diving into the science of Parallel Computing. I'll have some links when I get a chance. Windows Workflow Tomas talks about Silver , the integration