Skip to content

Commit 76442ef

Browse files
committed
Write failed tests in red
1 parent 13fc534 commit 76442ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function RunTestTasks($tasks) {
167167
$testName = $tasks[$bgJobs.$finished].name
168168
Write-Host
169169
if ($finished.State -eq 'Failed') {
170-
Write-Host "$testName failed"
170+
Write-Host -ForegroundColor Red "$testName failed"
171171
$global:Result = $finished.ChildJobs[0].JobStateInfo.Reason.ErrorRecord.TargetObject
172172
$failedTests += $testName
173173
} else {
@@ -184,7 +184,7 @@ function RunTestTasks($tasks) {
184184
Write-Host "$($bgJobs.Count) jobs running: $(($bgJobs.values | ForEach-Object {$tasks[$_].name}) -Join ", ")"
185185
Write-Host "$($tasks.Count - $nextJob) jobs pending: $(($nextJob..$tasks.Count | ForEach-Object {$tasks[$_].name}) -Join ", ")"
186186
if ($failedTests) {
187-
Write-Host "$($failedTests.Count) jobs failed: $($failedTests -Join ", ")"
187+
Write-Host -ForegroundColor Red "$($failedTests.Count) jobs failed: $($failedTests -Join ", ")"
188188
}
189189
Write-Host
190190
}

0 commit comments

Comments
 (0)