-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-end-to-end-tests.ps1
More file actions
28 lines (20 loc) · 801 Bytes
/
run-end-to-end-tests.ps1
File metadata and controls
28 lines (20 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Set-Location $PSScriptRoot
$start = Get-Date
Write-Host ""
Write-Host ("=" * 80) -ForegroundColor DarkGray
Write-Host " END-TO-END TESTS" -ForegroundColor Cyan
Write-Host ("=" * 80) -ForegroundColor DarkGray
Write-Host ""
mvn clean test "-Dtest=io.github.fortunen.kete.endtoendtests.**" "-Dsurefire.skipAfterFailureCount=1" -q
$exitCode = $LASTEXITCODE
$duration = (Get-Date) - $start
Write-Host ""
Write-Host ("=" * 80) -ForegroundColor DarkGray
if ($exitCode -eq 0) {
Write-Host " ✓ End-to-end tests passed! ($([math]::Round($duration.TotalSeconds, 1))s)" -ForegroundColor Green
} else {
Write-Host " ✗ End-to-end tests failed! ($([math]::Round($duration.TotalSeconds, 1))s)" -ForegroundColor Red
}
Write-Host ("=" * 80) -ForegroundColor DarkGray
Write-Host ""
exit $exitCode