Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update xunit.md
  • Loading branch information
thomhurst authored May 25, 2025
commit 2ace1925fdcec75955f48dd5adb94abdbaa6636e
19 changes: 4 additions & 15 deletions docs/docs/migration/xunit.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,14 @@ In your csproj add:

This is temporary - Just to make sure no types clash, and so the code fixers can distinguish between xUnit and TUnit types with similar names.

### Rebuild the project
#### Rebuild the project
This ensures the TUnit packages have been restored and the analyzers should be loaded.

#### Run the code fixers via the dotnet CLI
#### Run the code fixer via the dotnet CLI

Running them in a specific order is recommended.
So try the following:
`dotnet format analyzers --severity info --diagnostics TUXU0001`

`dotnet format analyzers --severity info --diagnostics TUnit0052`

`dotnet format analyzers --severity info --diagnostics TUnit0053`

`dotnet format analyzers --severity info --diagnostics TUnitAssertions0009`

Revert step `Remove the automatically added global usings`

`dotnet format analyzers --severity info --diagnostics TUnit0054`

`dotnet format analyzers --severity info --diagnostics TUnitAssertions0002`
#### Revert step `Remove the automatically added global usings`

#### Perform any manual bits that are still necessary
This bit's on you! You'll have to work out what still needs doing.
Expand Down
Loading