Skip to content

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.

vs_mac_extension_xunit

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.

vs_mac_unittest_pad_xunit

One thought on “How to run xUnit Tests in Visual Studio for Mac Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: