How to run xUnit Tests in Visual Studio for Mac
In the current version of Visual Studio for Mac there is “Add file” template for xUnit Unit-Tests. Nice and easy. But how to run these tests? The problem is, that the default installation of Visual Studio for Mac does not discover these xUnit Tests even if you do a full rebuild.
After searching a while I figured that one need to install the extension called “xUnit.NET 2 testing framework support” from the Extension Gallery.
After that one need to restart Visual Studio for Mac and do a full rebuild. The tests will then show up in the “Unit Tests” pad.
This extension shouldn’t be necessary anymore: https://github.com/xunit/xamarinstudio.xunit/issues/77
LikeLiked by 1 person