xUnit.net runs tests in random order

Tuesday, November 6th, 2007

When I was testing the behavior of MSTest's DeploymentItem attribute I relied on fact that MSTest executes tests in a predictable order to figure out how the attribute works. Typically it seems to execute test methods in the order they appear in the class. You should never ever rely on this ...

Gotchas: MSTest test projects don’t load on VS Pro

Friday, October 26th, 2007

As is always the way. In the process of writing my last post I found something else that has caught me out in the past. Now it's important to note that this is by design. VS Pro 2005 does not support testing projects. The really good news is that it will ...

Gotchas: MSTest’s [Ignore] attribute

Friday, October 5th, 2007

How would you expect of the following to behave? using Microsoft.VisualStudio.TestTools.UnitTesting; namespace DependencyItemTests {     [TestClass]     public class IgnoreAttributeFixture     {         [TestMethod]         [DependencyItemTests.Ignore]         public void IgnoreAttributeCheckingNotFullyQualified()         {         }     }        public class IgnoreAttribute : Attribute     {     } } I'd expect the IgnoreAttributeCheckingNotFullyQualified test to run just fine. But it doesn't, it's ignored (grayed out in the test view). ...

Gotchas: MSTest’s [DeploymentItem] attribute

Tuesday, October 2nd, 2007

So we've been struggling with our usage of the DeploymentItem attribute within our unit tests on the Service Factory for pretty much the entire project. We had some odd requirements like copying dynamically loaded assemblies into our test deployment root in order to make them available during testing. Essentially it seemed far ...

Gotchas: Using SN.EXE on Vista

Thursday, September 27th, 2007

Software development is full of pitfalls. Sometimes it's the little things that can have you up burning the midnight oil. The dumb stuff that in the cold light of day you wonder how you ever missed. So when you read some of these posts you may end up thinking "Who ...