Is it possible to use the integrated Visual Studio 2010 test runner to run other frameworks (Xunit, NUnit etc.) besides MSTest?
Does anyone know?
If you have Visual Studio Community (or a paid-for version of Visual Studio), you can run your xUnit.net tests within Visual Studio's built-in test runner (named Test Explorer).
It's an open source unit testing tool for . Net framework that's compatible with ReSharper, CodeRush, TestDriven.Net, and Xamarin. You can take advantage of xUnit.Net to assert an exception type easily.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With