Skip to content

Commit

Permalink
integrate QTemporaryTestDriver suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
kreuzberger authored and ursfassler committed Aug 1, 2024
1 parent 963626c commit 1bdf975
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions run-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,26 @@ Invoke-CMake "--build","build","--config","Release","--target","RUN_TESTS"
#

$CalcTests = @("build\examples\Calc\Release\GTestCalculatorSteps.exe",
"build\examples\Calc\Release\QtTestCalculatorSteps.exe",
"build\examples\Calc\Release\BoostCalculatorSteps.exe",
"build\examples\Calc\Release\FuncArgsCalculatorSteps.exe")

If (Test-Path -path $CalcTests[$i] -PathType Leaf) {
Start-Process -NoNewWindow $CalcTests[$i]
Start-Sleep -Seconds 1.0
Set-Location -Path 'examples/Calc'
Start-Process cucumber -NoNewWindow -Wait
set-Location -Path $PSScriptRoot
} Else {
Write-Host "Skipping $($CalcTests[$i]): file not exisiting" -f Yellow
}
If ((Get-Command "qmake.exe" -ErrorAction SilentlyContinue) -ne $null)
{
$CalcTests += "build\examples\Calc\Release\QtTestCalculatorSteps.exe"
}

For ($i=0; $i -lt $CalcTests.Length; $i++) {
If (Test-Path -path $CalcTests[$i] -PathType Leaf) {
Write-Host "Start Test $($CalcTests[$i])" -f Green
Start-Process -NoNewWindow $CalcTests[$i]
Start-Sleep -Seconds 1.0
Set-Location -Path 'examples/Calc'
Start-Process cucumber -NoNewWindow -Wait
set-Location -Path $PSScriptRoot
} Else {
Write-Host "Skipping $($CalcTests[$i]): file not exisiting" -f Yellow
}
}
#
# Execute QtCalc examples
#
Expand All @@ -101,6 +107,7 @@ Else

For ($i=0; $i -lt $QtCalcTests.Length; $i++) {
If (Test-Path -path $QtCalcTests[$i] -PathType Leaf) {
Write-Host "Start Test $($QtCalcTests[$i])" -f Green
Start-Process -NoNewWindow $QtCalcTests[$i]
Start-Sleep -Seconds 1.0
Set-Location -Path 'examples/CalcQt'
Expand Down

0 comments on commit 1bdf975

Please sign in to comment.