Last active
January 23, 2018 20:17
-
-
Save cdhunt/bcb2f26599d9cce186fc66ba0d0b4d31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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