poshtools-docs
poshtools-docs copied to clipboard
Testing integration does not find tests inside foreach
Take the following test for example, which works find and does show output in the log, does not show up in the test explorer
#Pick a password Length between 8 and 128 characters $n = 8..128 foreach ($length in $n){ It "Should generate a password $length character long" { (Mad-New-Random-Password($length)).length | Should -BeExactly "$length" } }