Skip to content

Commit

Permalink
Print test outcome during AppVeyor builds
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed May 14, 2017
1 parent e648d9a commit a8226f9
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,33 @@ after_build:

before_test:
- cmd: echo %PATH%
- cmd: set TEST_PATH=%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%
- cmd: set TEST_FRAMEWORK=Google Test
- ps: >-
$tests = @(
"testDeadState",
"testFSMBuilder",
"testFSM",
"testGameState",
"testInitState",
"testMentalMap",
"testMockAudioManager",
"testMockInputManager",
"testMockRobotManager",
"testProcessorImageEventListener",
"testYarpNetworkManager",
"testSDLAudioManager",
"testRobotDevastation"
)
- ps: >-
foreach ($test in $tests) {
Add-AppveyorTest -Name "$test" -Framework "$env:TEST_FRAMEWORK" -FileName "$test.exe" -Outcome None
}
test_script:
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testDeadState.exe"'
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testFSMBuilder.exe"'
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testFSM.exe"'
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testGameState.exe"'
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testInitState.exe"'
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testMentalMap.exe"'
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testMockAudioManager.exe"'
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testMockInputManager.exe"'
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testMockRobotManager.exe"'
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testProcessorImageEventListener.exe"'
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testYarpNetworkManager.exe"'
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testSDLAudioManager.exe"'
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testRobotDevastation.exe"'
- ps: >-
foreach ($test in $tests) {
"$env:TEST_PATH\$test.exe"
$outcome = If ($LASTEXITCODE -eq 0) {"Passed"} Else {"Failed"}
Update-AppveyorTest -Name "$test" -Framework "$env:TEST_FRAMEWORK" -FileName "$test.exe" -Outcome "$outcome"
}

0 comments on commit a8226f9

Please sign in to comment.