Archive for March, 2009

Problems running xUnit 1.1 under TestDriven.NET on 64-bit Windows

Tuesday, March 24th, 2009

I ran into a problem today trying to run xUnit tests under TestDriven.NET on my 64-bit Windows (7) install.

I had xUnit installed (with TestDriven.NET support enabled). I also had the TestDriven.NET 2.14 release installed (which is the latest stable build).

My test project had a reference to xunit.dll and my test methods were decorated with the [Fact] attribute.

But for some reason, when I tried to run the tests using TestDriven.NET, it would give the dreaded 0 passed, 0 failed, 0 skipped result, meaning it didn’t run any tests.

I’m not sure what the problem was, but the solution was simple: Install the latest TestDriven.NET beta build (currently 2.19.2409).

Apparently there is an issue with TestDriven.NET on 64-bit Windows (alluded to on the xUnit 1.1 release page).

Not sure if the problem is xUnit-specific or it occurs with other test frameworks as well.