diff --git a/docs/docs/migration/mstest.md b/docs/docs/migration/mstest.md index 3c85f20530..84c01b828c 100644 --- a/docs/docs/migration/mstest.md +++ b/docs/docs/migration/mstest.md @@ -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** diff --git a/docs/docs/migration/nunit.md b/docs/docs/migration/nunit.md index baa169f107..563cbf46b0 100644 --- a/docs/docs/migration/nunit.md +++ b/docs/docs/migration/nunit.md @@ -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** diff --git a/docs/docs/migration/xunit.md b/docs/docs/migration/xunit.md index c427465269..767ece1126 100644 --- a/docs/docs/migration/xunit.md +++ b/docs/docs/migration/xunit.md @@ -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**