Skip to content

Commit 1bdf975

Browse files
kreuzbergerursfassler
authored andcommitted
integrate QTemporaryTestDriver suggestion
1 parent 963626c commit 1bdf975

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

run-windows.ps1

+17-10
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,26 @@ Invoke-CMake "--build","build","--config","Release","--target","RUN_TESTS"
7171
#
7272

7373
$CalcTests = @("build\examples\Calc\Release\GTestCalculatorSteps.exe",
74-
"build\examples\Calc\Release\QtTestCalculatorSteps.exe",
7574
"build\examples\Calc\Release\BoostCalculatorSteps.exe",
7675
"build\examples\Calc\Release\FuncArgsCalculatorSteps.exe")
7776

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

82+
For ($i=0; $i -lt $CalcTests.Length; $i++) {
83+
If (Test-Path -path $CalcTests[$i] -PathType Leaf) {
84+
Write-Host "Start Test $($CalcTests[$i])" -f Green
85+
Start-Process -NoNewWindow $CalcTests[$i]
86+
Start-Sleep -Seconds 1.0
87+
Set-Location -Path 'examples/Calc'
88+
Start-Process cucumber -NoNewWindow -Wait
89+
set-Location -Path $PSScriptRoot
90+
} Else {
91+
Write-Host "Skipping $($CalcTests[$i]): file not exisiting" -f Yellow
92+
}
93+
}
8894
#
8995
# Execute QtCalc examples
9096
#
@@ -101,6 +107,7 @@ Else
101107

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

0 commit comments

Comments
 (0)