Is it possible to use the integrated Visual Studio 2010 test runner to run other frameworks (Xunit, NUnit etc.) besides MSTest?
Does anyone know?
Is it possible to use the integrated Visual Studio 2010 test runner to run other frameworks (Xunit, NUnit etc.) besides MSTest?
Does anyone know?
No but you can add an external tool. Go to Tools | External Tools... and click Add
Title: xUnit Test
Command: xunit.console.exe (set to full path to console test runner)
Arguments: $(BinDir)$(TargetName)$(TargetExt)
Initial directory: $(BinDir)
Click Use Output Window
Click OK. This adds the xUnit Test command to the Tools menu.
You can then create a shortcut key to making running the external tool easier. eg: Ctrl +T
At this stage xUnit doesn't support MSTest runner. However there is an extension someone already created. Few limitations, but you can run xUnit Tests within VS. For more information please see the link below. http://xunit.codeplex.com/workitem/5648
A bit late maybe, but this post shows in Google so I thought it might be worth to mention that ReSharper's unit test runner can integrate xUnit tests using the xUnit.net Contrib project, found here: http://xunitcontrib.codeplex.com/
There is an addon called 'Visual NUnit 2010' that will run NUnit tests in VS2010. It adds a TestRunner window that allows you to see your test results. More informations is at http://www.bubblecloud.org/visualnunit.
Adam Salvo made the start of an XUnit test runner based on the NUnit one: see http://blog.salvoz.com/2010/02/22/TransformXUnitToMSTest.aspx
FYI - If you install Gallio / MbUnit you can run almost any type of test in Visual Studio 2010.
NUnitForVS allows running NUnit tests using the integrated VS 2010 test runner. Many VS test features work, including Code Coverage, debugging, and running currently edited test method. There are some rough edges, but overall the extension works nicely.