Skip to content

Instantly share code, notes, and snippets.

@krishnaanaril
Last active June 22, 2020 12:31
Show Gist options
  • Save krishnaanaril/3bdfb13019d83d971d5d08ab0c45ceac to your computer and use it in GitHub Desktop.
Save krishnaanaril/3bdfb13019d83d971d5d08ab0c45ceac to your computer and use it in GitHub Desktop.
Powershell script to repeat the testing certain number of times. This is to find the errors caused by the numbers generated in random/inputs generated in random.
$count = 0
do {
$count = $count + 1
Write-Host "Testing: "+$count
$result = dotnet test .\Sample.csproj --filter "FullyQualifiedName=Test_Namespace.Test_Name" --nologo --no-build
} while(($result.ExitCode -ne 0) -and ($count -lt 50))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment