Skip to content

Commit fbb75e7

Browse files
authored
chore: diagnostic logs for dotnet format (#336)
* chore: diagnostic logs for dotnet format * format specific project * Update run-docs-tests.ps1 * fix docs script * fix docs script * fix docs script * retry for mstest * try logs * try logs * try logs * try logs * Update run-docs-tests.ps1
1 parent cb3ed66 commit fbb75e7

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

scripts/run-docs-tests.ps1

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,20 @@ Pop-Location
1111
if ($FormatAndExecuteTestsAgain) {
1212
Push-Location src
1313
Push-Location FluentAssertions.Analyzers.FluentAssertionAnalyzerDocs
14-
dotnet format analyzers --diagnostics FAA0001 FAA0003 FAA0004 --severity info --verbosity normal
14+
15+
$i = 1;
16+
do {
17+
Write-Host "formatting code... - Iteration $i"
18+
$out = dotnet format analyzers --diagnostics FAA0001 FAA0003 FAA0004 --severity info --verbosity normal 2>&1 | Out-String | Join-String
19+
20+
Write-Host "-------------$i-------------"
21+
Write-Host $out
22+
Write-Host "-------------$i-------------"
23+
Write-Host "output length: $($out.Length)"
24+
25+
$i++
26+
} while ($out.Contains("Unable to fix FAA000"))
27+
1528
Pop-Location
1629
Pop-Location
1730

@@ -20,4 +33,4 @@ if ($FormatAndExecuteTestsAgain) {
2033
dotnet run verify
2134
Pop-Location
2235
Pop-Location
23-
}
36+
}

0 commit comments

Comments
 (0)