From 96fe9c678c57f1dba81892e2ba4d01dde168c495 Mon Sep 17 00:00:00 2001 From: litefeel Date: Mon, 15 Oct 2018 00:48:33 +0800 Subject: [PATCH] Use runEditorTest instead of executeMethod --- Assets/Test/Editor/MyTest.cs | 9 ++++----- Scripts/build.sh | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Assets/Test/Editor/MyTest.cs b/Assets/Test/Editor/MyTest.cs index bfdc8e5..dbd0d18 100644 --- a/Assets/Test/Editor/MyTest.cs +++ b/Assets/Test/Editor/MyTest.cs @@ -1,11 +1,10 @@ using litefeel; +using NUnit.Framework; using UnityEditor; -public class MyTest { - - // Use this for initialization - - //[InitializeOnLoadMethod] +public class MyTest +{ + [Test] public static void Test () { AssetDatabase.DeleteAsset("Assets/Plugins/BitmapFontImporter/Examples/Font1/font1.fontsettings"); AssetDatabase.DeleteAsset("Assets/Plugins/BitmapFontImporter/Examples/Font2/font2.fontsettings"); diff --git a/Scripts/build.sh b/Scripts/build.sh index 48138ad..662b3cf 100644 --- a/Scripts/build.sh +++ b/Scripts/build.sh @@ -9,7 +9,7 @@ echo "Run test " -silent-crashes \ -logFile $(pwd)/unity.log \ -projectPath $(pwd) \ - -executeMethod MyTest.Test \ + -runEditorTests \ -quit code=$?