-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
74 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,53 @@ | ||
{ | ||
"metadata": [ | ||
{ | ||
"src": [ | ||
{ | ||
"src": "../src/Xunit.SkippableFact", | ||
"files": [ | ||
"**/*.csproj" | ||
] | ||
} | ||
], | ||
"dest": "api" | ||
} | ||
], | ||
"build": { | ||
"content": [ | ||
{ | ||
"files": [ | ||
"**/*.{md,yml}" | ||
], | ||
"exclude": [ | ||
"_site/**" | ||
] | ||
} | ||
], | ||
"resource": [ | ||
{ | ||
"files": [ | ||
"images/**" | ||
] | ||
} | ||
], | ||
"xref": [ | ||
"https://learn.microsoft.com/en-us/dotnet/.xrefmap.json" | ||
], | ||
"output": "_site", | ||
"template": [ | ||
"default", | ||
"modern" | ||
], | ||
"globalMetadata": { | ||
"_appName": "Xunit.SkippableFact", | ||
"_appTitle": "Xunit.SkippableFact", | ||
"_enableSearch": true, | ||
"pdf": false | ||
} | ||
} | ||
"metadata": [ | ||
{ | ||
"src": [ | ||
{ | ||
"src": "../src/Xunit.SkippableFact", | ||
"files": [ | ||
"**/*.csproj" | ||
] | ||
} | ||
], | ||
"dest": "api" | ||
} | ||
], | ||
"build": { | ||
"content": [ | ||
{ | ||
"files": [ | ||
"**/*.{md,yml}" | ||
], | ||
"exclude": [ | ||
"_site/**" | ||
] | ||
} | ||
], | ||
"resource": [ | ||
{ | ||
"files": [ | ||
"images/**" | ||
] | ||
} | ||
], | ||
"xref": [ | ||
"https://learn.microsoft.com/en-us/dotnet/.xrefmap.json" | ||
], | ||
"output": "_site", | ||
"template": [ | ||
"default", | ||
"modern" | ||
], | ||
"globalMetadata": { | ||
"_appName": "Xunit.SkippableFact", | ||
"_appTitle": "Xunit.SkippableFact", | ||
"_enableSearch": true, | ||
"pdf": false | ||
}, | ||
"markdownEngineProperties": { | ||
"markdigExtensions": [ | ||
"footnotes" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
href: features.md | ||
- name: Getting Started | ||
href: getting-started.md | ||
|
||
- href: xunit-v3.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# 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 | ||
--|-- | ||
@Xunit.Skip.If* | Assert.SkipWhen | ||
@Xunit.Skip.IfNot* | Assert.SkipUnless | ||
@Xunit.SkipException | Xunit.Sdk.SkipException | ||
@Xunit.SkippableFactAttribute | Xunit.FactAttribute[^1] | ||
@Xunit.SkippableTheoryAttribute | Xunit.TheoryAttribute[^1] | ||
|
||
[^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](https://github.com/xunit/xunit/issues/3101). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
href: docs/ | ||
- name: API | ||
href: api/ | ||
- name: GitHub | ||
href: https://github.com/AArnott/Xunit.SkippableFact |