Skip to content

Instantly share code, notes, and snippets.

@milgner
Created February 24, 2014 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milgner/9191862 to your computer and use it in GitHub Desktop.
Save milgner/9191862 to your computer and use it in GitHub Desktop.
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
:treeProcess
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