mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 05:10:48 +00:00
Update runall.ps1
add log switch to runall
This commit is contained in:
parent
be8e5a0e82
commit
23c36601ab
@ -1,4 +1,4 @@
|
||||
Param([String]$tag, [Int]$num=1)
|
||||
Param([String]$tag, [Int]$num=1, [switch]$log)
|
||||
Import-Module ..\lib\Voicemeeter.psm1
|
||||
|
||||
Function ParseLog {
|
||||
@ -39,11 +39,17 @@ try
|
||||
if (Test-Path $logfile) { Clear-Content $logfile }
|
||||
|
||||
1..$num | ForEach-Object {
|
||||
"Running test $_ of $num" | Tee-Object -FilePath $logfile -Append
|
||||
Invoke-Pester -Tag $tag -PassThru | Tee-Object -FilePath $logfile -Append
|
||||
if ($log) {
|
||||
"Running test $_ of $num" | Tee-Object -FilePath $logfile -Append
|
||||
Invoke-Pester -Tag $tag -PassThru | Tee-Object -FilePath $logfile -Append
|
||||
}
|
||||
else {
|
||||
"Running test $_ of $num"
|
||||
Invoke-Pester -Tag $tag -PassThru
|
||||
}
|
||||
}
|
||||
|
||||
Parselog -logfile $logfile
|
||||
if($log) { Parselog -logfile $logfile }
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user