component-detection icon indicating copy to clipboard operation
component-detection copied to clipboard

Migrate from `MSTest.TestFramework` to `xunit`

Open JamieMagee opened this issue 3 years ago • 0 comments

There are 3 major testing frameworks for .NET: MSTest^1, xunit^2, and NUnit^3. MSTest was (likely) chosen for Component Detection as it was the default test framework when creating a new project in Visual Studio.

Out of the 3 frameworks xunit has the most downloads. Currently MSTest has 146M, NUnit 194M, and xunit has 273M. That alone shows that xunit has more developer mindshare. Some other benefits include:

  • [SetUp] and [TearDown] are not included to promote cleaner tests
  • Attributes and classes aren't sealed allowing for easy extensibility

References:

JamieMagee avatar Aug 26 '22 20:08 JamieMagee