RationalDev

more of an aspiration than a claim

Test View Not Displaying All Unit Tests in Visual Studio 2008

For a Visual Studio project to display tests in the Test View window it needs to be created as a “Test” project. If you want to see the tests and it was created as some other kind of project originally, you should be able to add the following in the <PropertyGroup> element in you <project name>.csproj file which is XML based:

    <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

Now Visual Studio 2008 should display all your unit tests in the Test View window.

Thanks to this article for helping me out with this one.