mirror of
				https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
				synced 2025-10-31 12:41:46 +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 | Import-Module ..\lib\Voicemeeter.psm1 | ||||||
| 
 | 
 | ||||||
| Function ParseLog { | Function ParseLog { | ||||||
| @ -39,11 +39,17 @@ try | |||||||
|     if (Test-Path $logfile) { Clear-Content $logfile } |     if (Test-Path $logfile) { Clear-Content $logfile } | ||||||
| 
 | 
 | ||||||
|     1..$num | ForEach-Object { |     1..$num | ForEach-Object { | ||||||
|  |         if ($log) {  | ||||||
|             "Running test $_ of $num" | Tee-Object -FilePath $logfile -Append |             "Running test $_ of $num" | Tee-Object -FilePath $logfile -Append | ||||||
|             Invoke-Pester -Tag $tag -PassThru | 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 | finally | ||||||
| { | { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user