Thursday, April 24, 2008

Gallio integration with Visual Studio Team System

One of the questions I've often received about Gallio has been about whether it would integrate with MSTest and Visual Studio Team System.

Gallio running MSTest tests in Icarus

Julian did the work of writing a Gallio adapter plugin for MSTest tests.  Gallio explores MSTest tests using reflection and runs them by shelling out to MSTest.exe and parsing the test result XML file.

Here's a screenshot of the Gallio Icarus GUI running some MSTest tests.

An MSTest test running in Icarus courtesy of Gallio

Gallio running MSTest tests in ReSharper

Of course, you can use any Gallio test runner to run MSTest tests.  That means you automatically get ReSharper integration too!  (And in all of the other runners too.)

An MSTest test running in ReSharper courtesy of Gallio

 

MSTest running Gallio tests in Visual Studio

Another common request has been to provide integration so that Visual Studio Team Test can run Gallio tests in the IDE and using the MSTest.exe command-line.

This particular request was echoed to me a couple of times at ALT.Net from people who, for good or ill, have been instructed by management to use the Team System test runner instead of TestDriven.Net or ReSharper.  So I decided to give it a shot.

Gallio Alpha 3 now includes an experimental package for Visual Studio to do just that.  (It also works on the command-line).

An MbUnit test running inside of Visual Studio Team System

Technorati Tags: ,

4 comments:

Tomdekoning said...

Is it possible to use integration with Resharpen 4.0?

I've tried the plugin, but couldn't get it to work with 775; if it works, which version of r# does it work with?

Jeff Brown said...

It only works with ReSharper 3.1 currently.

Support for 4.0 is forthcoming.

Colin Jack said...

Very interesting stuff, we are one of the teams using Team System test runner so this looks very useful.

Jason said...

Does the Team System test runner correctly expand and show results for MbUnit [TestSuite] tests?