浏览代码

update tests due to simulation capture package update

/0.8.0.preview.4_staging
Aryan Mann 3 年前
当前提交
b7d942e5
共有 3 个文件被更改,包括 20 次插入1 次删除
  1. 2
      TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionCameraEditorUrpTests.cs
  2. 4
      com.unity.perception/Tests/Editor/PerceptionCameraEditorTests.cs
  3. 15
      TestProjects/PerceptionURP/ProjectSettings/BurstAotSettings_StandaloneOSX.json

2
TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionCameraEditorUrpTests.cs


var gameObject = new GameObject();
gameObject.SetActive(false);
gameObject.AddComponent<Camera>();
gameObject.AddComponent<UniversalAdditionalCameraData>();
var perceptionCamera = gameObject.AddComponent<PerceptionCamera>();
gameObject.SetActive(true);
LogAssert.Expect(LogType.Error, "GroundTruthRendererFeature must be present on the ScriptableRenderer associated with the camera. The ScriptableRenderer can be accessed through Edit -> Project Settings... -> Graphics -> Scriptable Render Pipeline Settings -> Renderer List.");

4
com.unity.perception/Tests/Editor/PerceptionCameraEditorTests.cs


using Moq;
using Moq.Protected;
using UnityEngine.Rendering;
#endif
namespace EditorTests

var camera = cameraObject.AddComponent<Camera>();
camera.orthographic = true;
camera.orthographicSize = 1;
#elif URP_PRESENT
cameraObject.AddComponent<UnityEngine.Rendering.Universal.UniversalAdditionalCameraData>();
#endif
var perceptionCamera = cameraObject.AddComponent<PerceptionCamera>();

15
TestProjects/PerceptionURP/ProjectSettings/BurstAotSettings_StandaloneOSX.json


{
"MonoBehaviour": {
"Version": 3,
"EnableBurstCompilation": true,
"EnableOptimisations": true,
"EnableSafetyChecks": false,
"EnableDebugInAllBuilds": false,
"UsePlatformSDKLinker": false,
"CpuMinTargetX32": 0,
"CpuMaxTargetX32": 0,
"CpuMinTargetX64": 0,
"CpuMaxTargetX64": 0,
"CpuTargetsX64": 72
}
}
正在加载...
取消
保存