Can Visual Studio 2010 Test Runner run XUnit?
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
也许有点晚,但这篇文章在谷歌显示,所以我认为值得一提的是, ReSharper的单元测试运行器可以使用xUnit.net Contrib项目集成xUnit测试,在这里找到:http: //xunitcontrib.codeplex.com/
链接地址: http://www.djcxy.com/p/44198.html