コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Jenkins のフリースタイルジョブで Unity Test Runner を実行するサンプル

概要

UNITY_TEST_RUNNER Config  Jenkins

シェルスクリプト

rm -f -v ${WORKSPACE}/UnityProject/*.xml
"/Applications/Unity/Hub/Editor/2020.1.6f1/Unity.app/Contents/MacOS/Unity" \
    -batchmode \
    -runEditorTests \
    -projectPath ${WORKSPACE}/UnityProject \
    -logFile -

Test report XMLs

UnityProject/*.xml