Using Typemock VS2010 Beta 2

By James Fisk

After installing TypeMock with VS2010 Beta 2 I found there was no integration in VS2010.  This means that when you run your unit tests in your integrated unit test runner TypeMock would not kick in.

To workaround this use TMockRunner.exe with nunit as an external command like this :-

"c:\Program Files\Typemock\Isolator\5.4\TMockRunner.exe" "c:\Program Files (x86)\NUnit 2.5.3\bin\net-2.0\nunit-console.exe” "c:\Projects\Aberdovey2010\spikes\UnitTesting\Sample.Tests\bin\Debug\Sample.Tests.dll"

You will need to change the paths for your environment.

As mentioned this will need to executed outside the outside Visual Studio from batch file, or you could add the command as an external tool.

To do this got to menu Tools->Externel Tools…

This will bring up the following dialog box :-

externeltools

Enter the title, location of the command, in this case TMockRunner.exe, and the arguments which should be, <nunit install path>nunit-console.exe <full path to TEST assembly>.  Don’t forget to check the ‘User Output to window’ check box, which means all output from this command will go to the output window, simples.  Have fun.

categoriaSharePoint, typemock commentoNo Comments dataJanuary 6th, 2010
Read All