@@ -71,20 +71,26 @@ Invoke-CMake "--build","build","--config","Release","--target","RUN_TESTS"
71
71
#
72
72
73
73
$CalcTests = @ (" build\examples\Calc\Release\GTestCalculatorSteps.exe" ,
74
- " build\examples\Calc\Release\QtTestCalculatorSteps.exe" ,
75
74
" build\examples\Calc\Release\BoostCalculatorSteps.exe" ,
76
75
" build\examples\Calc\Release\FuncArgsCalculatorSteps.exe" )
77
76
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
+ }
87
81
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
+ }
88
94
#
89
95
# Execute QtCalc examples
90
96
#
101
107
102
108
For ($i = 0 ; $i -lt $QtCalcTests.Length ; $i ++ ) {
103
109
If (Test-Path - path $QtCalcTests [$i ] - PathType Leaf) {
110
+ Write-Host " Start Test $ ( $QtCalcTests [$i ]) " -f Green
104
111
Start-Process - NoNewWindow $QtCalcTests [$i ]
105
112
Start-Sleep - Seconds 1.0
106
113
Set-Location - Path ' examples/CalcQt'
0 commit comments