IMPORTANT: Latest MonoDevelop 7 and Visual Studio for Mac uses VSTest to run xUnit.net test cases natively. Thus, you no longer need an extension like this. Please uninstall this extension to avoid any conflict.
This project fulfilled its mission and officially ended on Dec 4, 2017.
Integrates xUnit.NET into the MonoDevelop / Visual Studio for Mac IDE.
Copyright (c) Sergey Khabibullin/Lex Li/Zheng Wang
The history about the development of this extension can be found here.
Xamarin Studio is obsolete, so no longer supported by the latest release of this extension. MonoDevelop 5.x and 6.x releases are obsolete, so no longer supported by the latest release of this extension.
IMPORTANT: Starting from v0.7.6, please download the .mpack files from https://github.com/xunit/xamarinstudio.xunit/releases Then in Extension Manager you can use "Install from file..." button to manually install this extension.
- Open MonoDevelop.
- Use Add-ins... menu item to launch Add-in Manager.
- Click Gallery tag, and make sure "All repositories" is selected as Repository.
- Choose "xUnit.NET 2 testing framework support" under Testing, and click Install button.
You can install MonoDevelop 7 by following the documentation on monodevelop.com, but you might also read this blog post to learn the alternative way.
IMPORTANT: Starting from v0.7.6, please download the .mpack files from https://github.com/xunit/xamarinstudio.xunit/releases so as to use the latest release. Then in Extension Manager you can use "Install from file..." button to manually install this extension.
- Open Visual Studio for Mac.
- Use Extensions... menu item to launch Extension Manager.
- Click Gallery tag, and make sure "All repositories" is selected as Repository.
- Choose "xUnit.NET 2 testing framework support" under Testing, and click Install button.
Upon installation, the Unit Tests panel in MonoDevelop/Visual Studio for Mac starts to recognize xUnit.net test cases. Then you can run/debug test cases.
- The add-in can be manually downloaded from here if you cannot use Add-in Manager.
- Running .NET Core based unit test projects in Visual Studio for Mac does not require this extension. This extension is only needed if you want to run .NET Framework/Mono based unit test projects. Thus, don't report .NET Core based issues to this repo.
- Anyone who wants to contribute to this project, please check the contributing guide to see how to set up the development environment.