Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run Test projects with Visual Studio 2008 Standard Edition?

I'm currently running Visual Studio 2008 Standard Edition and one of the items they cut out for that edition is the unit testing capability. As a result, when I open up example projects like the MVC commerce test, one of the projects just won't load since it doesn't know to open that type of project.

I know I can just exclude or remove the project and I am aware of TestDriven.NET, but is there a plugin for VS2008 Standard which will do the unit tests that come with VS2008 Pro? Will TestDriven.NET do this or are the tests different enough from NUnit testing that this won't work?

UPDATE: To clarify, I'm curious if there are any programs or plugins out there that can run Test projects within Visual Studio 2008. TestDriven.NET cannot load or run or allow VS2008 to open Test projects and Gallio does not run within the VS2008 IDE (although I appreciate the suggestions greatly)

like image 294
Tom Kidd Avatar asked Nov 06 '08 20:11

Tom Kidd


People also ask

How do I run a test project in Visual Studio?

To run all the tests in a default group, choose the Run icon and then choose the group on the menu. Select the individual tests that you want to run, open the right-click menu for a selected test and then choose Run Selected Tests (or press Ctrl + R, T).

Is visual studio used for testing?

Visual Studio is one such platform for testing your code and making it error-free. Visual Studio has versatile testing tools to analyze the efficacy of your code in different test environments. Be it C#, C++, Python, . NET, or Java; you can customize these testing tools for many coding languages.


1 Answers

Try Gallio as explained best in this blog post by Richard Dingwall, and for Visual Studio support, use TestDriven.Net to runs it.

There's some information available in this Google Groups post as well.


From Gallio's website:

At present Gallio can run tests from MbUnit versions 2 and 3, MSTest, NBehave, NUnit, xUnit.Net, and csUnit. Gallio provides tool support and integration with CCNet, MSBuild, NAnt, NCover, Pex, Powershell, Resharper, TestDriven.Net, TypeMock, and Visual Studio Team System.

like image 175
chakrit Avatar answered Nov 04 '22 09:11

chakrit