-
Couldn't load subscription status.
- Fork 5.2k
Open
Labels
area-Infrastructure-librariesdev-innerloopquestionAnswer questions and provide assistance, not an issue with source code or documentation.Answer questions and provide assistance, not an issue with source code or documentation.
Milestone
Description
When trying to fix a flaky test, I usually need to run it for a while before I am able to reproduce the problem.
Sample command:
.\dotnet.cmd build /t:Test .\src\libraries\System.Diagnostics.Process\tests\System.Diagnostics.Process.Tests.csproj /p:Configuration=Debug /p:TargetArchitecture=x86 /p:XunitMethodName=System.Diagnostics.Tests.ProcessModuleTests.LongModuleFileNamesAreSupported@ViktorHofer @safern Do we have any built-in way of requesting given test to be run until it fails? If not, would a PR that adds such possibility to dotnet.cmd|sh script be welcomed?
Usually I hack dotnet.cmd and do the following:
+:Loop
call "%dotnetPath%\dotnet.exe" %*
+if %ERRORLEVEL% equ 0 goto :LoopKezzo
Metadata
Metadata
Assignees
Labels
area-Infrastructure-librariesdev-innerloopquestionAnswer questions and provide assistance, not an issue with source code or documentation.Answer questions and provide assistance, not an issue with source code or documentation.