File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
com.unity.netcode.gameobjects/Tests/Editor/Build Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 44using UnityEditor ;
55using UnityEditor . Build . Reporting ;
66using UnityEngine ;
7- using UnityEngine . TestTools ;
87
98namespace Unity . Netcode . EditorTests
109{
@@ -21,20 +20,20 @@ public void BasicBuildTest()
2120 var buildTargetGroup = BuildPipeline . GetBuildTargetGroup ( buildTarget ) ;
2221 var buildTargetSupported = BuildPipeline . IsBuildTargetSupported ( buildTargetGroup , buildTarget ) ;
2322
24- var buildReport = BuildPipeline . BuildPlayer (
25- new [ ] { Path . Combine ( packagePath , DefaultBuildScenePath ) } ,
26- Path . Combine ( Path . GetDirectoryName ( Application . dataPath ) , "Builds" , nameof ( BuildTests ) ) ,
27- buildTarget ,
28- BuildOptions . None
29- ) ;
30-
3123 if ( buildTargetSupported )
3224 {
25+ var buildReport = BuildPipeline . BuildPlayer (
26+ new [ ] { Path . Combine ( packagePath , DefaultBuildScenePath ) } ,
27+ Path . Combine ( Path . GetDirectoryName ( Application . dataPath ) , "Builds" , nameof ( BuildTests ) ) ,
28+ buildTarget ,
29+ BuildOptions . None
30+ ) ;
31+
3332 Assert . AreEqual ( BuildResult . Succeeded , buildReport . summary . result ) ;
3433 }
3534 else
3635 {
37- LogAssert . Expect ( LogType . Error , "Error building player because build target was unsupported ") ;
36+ Debug . Log ( $ "Skipped building player due to Unsupported Build Target ") ;
3837 }
3938 }
4039 }
You can’t perform that action at this time.
0 commit comments