Table of Contents

Xunit v3 Migration

Xunit v3 has skipping built-in, so there is no need for Xunit.SkippableFact. As part of upgrading from Xunit v2 to v3, you should remove your package reference on Xunit.SkippableFact.

The following provides a guide for switching your use of Xunit.SkippableFact to Xunit v3 when you update your Xunit dependency.

Xunit.SkippableFact API Xunit v3 API
If Assert.SkipWhen
IfNot Assert.SkipUnless
SkipException Xunit.Sdk.SkipException
SkippableFactAttribute Xunit.FactAttribute1
SkippableTheoryAttribute Xunit.TheoryAttribute1

  1. Xunit's built-in attributes are sufficient. Although they lack the ability to take a list of exception types that should produce a Skipped result. This may come in the future.