Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure VS2012 test runner to pick up and run Gallio unit tests?

I've recently upgraded to VS2012 to iron out problems ahead of my team. We use Gallio 3.3 as a unit tests framework and have numerous tests written which work in VS2010. However, VS2012 does not appear to recognise them.

The VS2012 Test Explorer windows says "Build your solution to discover all available tests". I have done several clean builds, and the system runs in VS2012, but no tests appear.

Is there any configuration I need to put in, or any way I can get these tests to run in VS2012?

like image 336
Peter Avatar asked Nov 12 '22 21:11

Peter


1 Answers

VS2012 UnitTestExplorer provides a platform to allow test frameworks to discover/execute tests. Currently, there're xUnit, nUnit, MSTest and a few other adapters available to work with VS2012.

For your Gallio tests to work with UnitTestExplorer, you will need a MBUnit adapter to discover/execute tests.

Currently, there's a MBUnitTest adapter which only works for VS2012 beta (come out around Feb this year). It comes with source code. You can either

  1. Download the code, make changes so it works with VS2012
  2. File a request to the adapter writer and ask for making necessary changes.
like image 190
Patrick Tseng Avatar answered Nov 26 '22 03:11

Patrick Tseng