TestDriven.NET + Visual Studio Test Tools

TestDriven.NET 2.0 Beta includes support for the Visual Studio Test Tools (VSTT) unit testing framework that comes with Visual Studio 2005 Team Suite, Developer and Tester. If you are using this unit testing framework you will probably find TestDriven.NET a faster and more convenient way to execute your unit tests (if you're not convinced, I recommend you read Brian Button's article). As well as being able to execute your unit tests using TestDriven.NET, you can also view them using the NUnit GUI (when launched from the 'Solution Explorer' context menu). This is achieved using a special adaptor that knows how to handle a subset of the VSTT attributes and functionality.

At the moment the following attributes and classes are supported:





The most glaring omission is support for AssemblyInitializeAttribute and AssemblyCleanupAttribute. I'm interested to know if there are any other VSTT unit testing attributes that people are using and would like to see supported. If there are, please let me know and I'll do my best to make them work.

In order for the VSTT support to work, the 'Microsoft.VisualStudio.QualityTools.UnitTestFramework' and 'Microsoft.VisualStudio.QualityTools.Resource' assemblies must be available. You can find them installed in the GAC with Visual Studio 2005 Team editions. They are however not redistributable, so if you want to use them on a non-Team version of Visual Studio you should check the licence agreement first!

No Comments