WELCOME

This blog is where I post about my consulting work with Microsoft Technologies, and other random tidbits that don't fit in my Photo Blog or my Iraq Blog.

Thursday, November 13, 2008

VS2008 question: How do you make a unit test ONLY run as part of an Ordered Test?

The title of this post pretty much says it all. Visual Studio 2008 supports "Ordered Tests", which are a pretty slick way to run a set of Unit Tests in a set sequence.

Back in the day we had to create one unit test that called the other tests in order to achieve this.

So the new "Ordered Test" is cool except for one problem that I haven't been able to figure out: How do I make a unit test ONLY run as part of an Ordered Test?

The whole point of using the Ordered Test in my case is that I have a bunch of methods with data dependencies that can ONLY be run in a specific order. But I can't figure out how to disable them from running individually... grrr!

I'm sure there is a way to do this, but I haven't been able to figure it out. Your help greatly appreciated!

No comments: