NUnit integration in Visual Studio 2005.This add-in for Visual Studio 2005 Team System will allow you to run NUnit tests just like Visual Studio Unit tests integrated in Visual Studio. How toVisual Studio 2005 (Developer and Tester Editions) are capable of running unit tests. Unfortunatly it does not support NUnit tests. Converting NUnit tests to Visual Studio unit tests takes time and sometimes not possible. That's why this utility. It allows Visual Studio to see and run NUnit tests without changing any code.Visual Studio "marks" all test projects with some special Guids. Thats why you have to first convert your NUnit test project to a "Test Project". To do this open your solution. In Solution Explorer right click on a project that you want to make a test project and select "Unload Project". This will allow you to edit project csproj file. Once more right click on project and select "Edit <projectname>.csproj". This will open csproj file in editor. Now you have to add following tag in first <PropertyGroup> tag: <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> Now close the project file in editor saving the changes, right click on project in Solution Explorer and select "Reload Project". Now Visual Studio recognize this project as a test project and you can see and run Visual Studio unit tests. To make Visual Studio run your NUnit test simply add an empty text file with extension ".nunit" (for example "unittests.nunit"). Now go in menu Test->Windows->Test View. You should now see your NUnit tests in Test View window. |