Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 11 additions & 1 deletion docs/docs/migration/mstest.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,17 @@ This allows the code fixer to distinguish between `Microsoft.VisualStudio.TestTo
dotnet build
```

This restores packages and loads the TUnit analyzers. You should see `TUMS0001` warnings in your build output for MSTest code that can be converted.
This restores packages and loads the TUnit analyzers.

:::note Optional: Verify analyzer is working
The `TUMS0001` diagnostic is information-level and won't appear in standard build output. If you want to verify the analyzer is detecting MSTest code before applying changes, run:

```bash
dotnet format analyzers --severity info --diagnostics TUMS0001 --verify-no-changes
```

This command checks for `TUMS0001` diagnostics without modifying any files. If MSTest code is detected, you'll see messages like "Would fix N files" or specific file paths that would be changed.
:::

**4. Run the automated code fixer**

Expand Down
12 changes: 11 additions & 1 deletion docs/docs/migration/nunit.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,17 @@ This allows the code fixer to distinguish between `NUnit.Framework.Assert` and `
dotnet build
```

This restores packages and loads the TUnit analyzers. You should see `TUNU0001` warnings in your build output for NUnit code that can be converted.
This restores packages and loads the TUnit analyzers.

:::note Optional: Verify analyzer is working
The `TUNU0001` diagnostic is information-level and won't appear in standard build output. If you want to verify the analyzer is detecting NUnit code before applying changes, run:

```bash
dotnet format analyzers --severity info --diagnostics TUNU0001 --verify-no-changes
```

This command checks for `TUNU0001` diagnostics without modifying any files. If NUnit code is detected, you'll see messages like "Would fix N files" or specific file paths that would be changed.
:::

**4. Run the automated code fixer**

Expand Down
12 changes: 11 additions & 1 deletion docs/docs/migration/xunit.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,17 @@ This allows the code fixer to distinguish between `Xunit.Assert` and `TUnit.Asse
dotnet build
```

This restores packages and loads the TUnit analyzers. You should see `TUXU0001` warnings in your build output for xUnit code that can be converted.
This restores packages and loads the TUnit analyzers.

:::note Optional: Verify analyzer is working
The `TUXU0001` diagnostic is information-level and won't appear in standard build output. If you want to verify the analyzer is detecting xUnit code before applying changes, run:

```bash
dotnet format analyzers --severity info --diagnostics TUXU0001 --verify-no-changes
```

This command checks for `TUXU0001` diagnostics without modifying any files. If xUnit code is detected, you'll see messages like "Would fix N files" or specific file paths that would be changed.
:::

**4. Run the automated code fixer**

Expand Down