Tag Archive for 'nunit'

Integrating NUnit test result in the TFS Data Warehouse

Team Foundation Server has a great story when it comes to integrating several development practices into a single data warehouse for running reports on, and out of the box (at least) the Developer and Test editions of Visual Studio integrates into this warehouse with MS’s own unit testing framework, MSTest.

We played around a bit with MSTest a while ago in a couple of projects I’m on at work, but came to the conclusion that it fell short of MbUnit which provides a much better story when it comes with integrating with other test runner tools (TestDriven.Net / ReSharper) which I think is far superior to the one in Visual Studio and also has a larger arsenal of extensions and out-of-the-box asserts.

During the time we have been using MbUnit we have always been using the HTML reports which MbUnit provides and adding a link to this report in the build report provided by Team Build. The ability to have the test results in TFS have been something we have wanted the whole time though, and lately I found a project called NUnit for Team Build on CodePlex. This triggered me to try NUnit with a subset of our tests to try to get this thing running and this solution provides exactly what we have wanted.

There wasn’t much hassle getting the unit tests converted from MbUnit to NUnit, as it mostly consisted of replacing the using statements to point to NUnit.Framework instead of MbUnit.Framework and then rename/edit some of the asserts.

Continue reading ‘Integrating NUnit test result in the TFS Data Warehouse’