Skip to content

Instantly share code, notes, and snippets.

@cdhunt
Last active January 23, 2018 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdhunt/bcb2f26599d9cce186fc66ba0d0b4d31 to your computer and use it in GitHub Desktop.
Save cdhunt/bcb2f26599d9cce186fc66ba0d0b4d31 to your computer and use it in GitHub Desktop.
#requires -Module NameIt
while ($true) {
$tc = Get-Random -Minimum 1 -Maximum 15
$t = 0
$c=ig "[noun]"
Write-Host "`t Context $c" -ForegroundColor Green
while($t -le $tc) {
$sleep = Get-Random -Minimum 25 -Maximum 800
$pass = (Get-Random -Minimum 1 -Maximum 100) -lt 75
$testname = ig "[noun] Should Be [adjective]"
Start-Sleep -Milliseconds $sleep
if ($pass) {Write-Host "`t`t [+] $testname " -ForegroundColor Green -NoNewline} else {Write-Host "`t`t [-] $testname " -ForegroundColor Red -NoNewline}
Write-Host ${sleep}ms -ForegroundColor Gray
$t++
}
Start-Sleep -Milliseconds 150
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment