Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Script to run all test projects (which are based on Google test) in TeamCity
@echo off
cd %~dp0..\build\%1\tests
call :treeProcess
goto :eof
for %%e in (*.exe) do (
%%e --gtest_output=xml:%TEMP%\%%e.xml
echo ##teamcity[importData type='junit' path='%TEMP%\%%e.xml']
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
exit /b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.