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 4
4
using UnityEditor ;
5
5
using UnityEditor . Build . Reporting ;
6
6
using UnityEngine ;
7
- using UnityEngine . TestTools ;
8
7
9
8
namespace Unity . Netcode . EditorTests
10
9
{
@@ -21,20 +20,20 @@ public void BasicBuildTest()
21
20
var buildTargetGroup = BuildPipeline . GetBuildTargetGroup ( buildTarget ) ;
22
21
var buildTargetSupported = BuildPipeline . IsBuildTargetSupported ( buildTargetGroup , buildTarget ) ;
23
22
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
-
31
23
if ( buildTargetSupported )
32
24
{
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
+
33
32
Assert . AreEqual ( BuildResult . Succeeded , buildReport . summary . result ) ;
34
33
}
35
34
else
36
35
{
37
- LogAssert . Expect ( LogType . Error , "Error building player because build target was unsupported ") ;
36
+ Debug . Log ( $ "Skipped building player due to Unsupported Build Target ") ;
38
37
}
39
38
}
40
39
}
You can’t perform that action at this time.
0 commit comments