No Slow Unit Tests with xUnit.net

Monday, July 21st, 2008

Ever discovered people on your team have gotten into the habit of writing slow unit tests? Tests that take half a minute to execute, that bog down both your development and your build server? With xUnit.net you can extend the Fact attribute to set the test timeout. In the example below ...

An xUnit.net Assert.Throws() Code Snippet

Tuesday, June 24th, 2008

I was mucking around with code snippets over the weekend - it killed the time in between feeling sick. As my unit testing framework of choice is XUnit I thought I've have a go at adding a snippet or two around that. xUnit already comes with a nice code snippet for ...

Linq DataContext Logging with the Logging Application Block

Thursday, June 5th, 2008

The System.Data.Linq.DataContext class exposes a TextWriter as the Log property allowing you to monitor the SQL that's getting executed under the covers. The trivial usage of this is to simply set the property to Console.Out and watch the results. Given that I was adding the Enterprise Library 4.0 Logging Block to ...

xUnit.net 1.0 released

Thursday, April 24th, 2008

Brad's blog announces the release of xUnit 1.0 RTM. Well worth the wait I'm sure. Technorati Tags: Unit testing,TDD,xUnit

Development tools for coding projects

Thursday, December 6th, 2007

It was finally time to re-pave my machine which had been getting a bit sluggish of late. I started off with Peter's machine repave post and created my own backlog of things I install. A while back a blogged about tools for personal coding projects which proved pretty popular. I ...

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 ...

xUnit released

Wednesday, September 26th, 2007

xUnit is the latest greatest unit testing framework from Jim Newkirk, one of the original authors of NUnit. Jim, Brad and the CodePlex team have finally released it on xUnit.net. I went to a talk by Brad on xUnit a while back it's got lots of cool new features and has ...