poshtools-docs icon indicating copy to clipboard operation
poshtools-docs copied to clipboard

Testing integration does not find tests inside foreach

Open KitKat31337 opened this issue 5 years ago • 0 comments

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" } }

KitKat31337 avatar Aug 12 '20 21:08 KitKat31337