Exclude lines about Pester executing test scripts from terse logs (#6336)

This commit is contained in:
Travis Plunk 2018-03-08 10:17:23 -08:00 committed by Dongbo Wang
parent 1426e24541
commit 28bf189e6e

View file

@ -1106,6 +1106,10 @@ Restore the module to '$Pester' by running:
$script:nonewline = $true
$script:inerror = $false
}
elseif ($trimmedline.StartsWith("Executing script ")) {
# Skip lines where Pester reports that is executing a test script
return
}
elseif ($trimmedline -match "^\d+(\.\d+)?m?s$") {
# Skip the time elapse like '12ms', '1ms', '1.2s' and '12.53s'
return