diff --git a/Assets/_ModularAvatar/EditModeTests/TestBase.cs b/Assets/_ModularAvatar/EditModeTests/TestBase.cs index 250b8308..dc94a770 100644 --- a/Assets/_ModularAvatar/EditModeTests/TestBase.cs +++ b/Assets/_ModularAvatar/EditModeTests/TestBase.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Linq; using nadena.dev.modular_avatar.core.editor; +using nadena.dev.modular_avatar.editor.ErrorReporting; using NUnit.Framework; using UnityEditor; using UnityEditor.Animations; @@ -17,6 +18,7 @@ namespace modular_avatar_tests [SetUp] public virtual void Setup() { + BuildReport.Clear(); objects = new List(); } diff --git a/Packages/nadena.dev.modular-avatar/Editor/ErrorReporting/ErrorReportUI.cs b/Packages/nadena.dev.modular-avatar/Editor/ErrorReporting/ErrorReportUI.cs index 29c8c144..f5150776 100644 --- a/Packages/nadena.dev.modular-avatar/Editor/ErrorReporting/ErrorReportUI.cs +++ b/Packages/nadena.dev.modular-avatar/Editor/ErrorReporting/ErrorReportUI.cs @@ -23,6 +23,8 @@ namespace nadena.dev.modular_avatar.editor.ErrorReporting public static void MaybeOpenErrorReportUI() { + if (Application.isBatchMode) return; // headless unit tests + if (BuildReport.CurrentReport.Avatars.Any(av => av.logs.Count > 0)) { OpenErrorReportUI();