浏览代码

Incorporating mohsen's test fix

/keypoint_self_occlusion
Steve Borkman 3 年前
当前提交
bec0dc78
共有 3 个文件被更改,包括 7 次插入8 次删除
  1. 12
      TestProjects/PerceptionHDRP/Packages/manifest.json
  2. 1
      TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionCameraEditorUrpTests.cs
  3. 2
      com.unity.perception/Tests/Runtime/GroundTruthTests/KeypointGroundTruthTests.cs

12
TestProjects/PerceptionHDRP/Packages/manifest.json


"dependencies": {
"com.unity.collab-proxy": "1.2.16",
"com.unity.ext.nunit": "1.0.6",
"com.unity.ide.rider": "1.1.4",
"com.unity.ide.rider": "1.2.1",
"com.unity.simulation.capture": "0.0.10-preview.16",
"com.unity.simulation.core": "0.0.10-preview.21",
"com.unity.test-framework": "1.1.20",
"com.unity.testtools.codecoverage": "0.2.2-preview",
"com.unity.textmeshpro": "2.0.1",
"com.unity.simulation.capture": "0.0.10-preview.23",
"com.unity.simulation.core": "0.0.10-preview.26",
"com.unity.test-framework": "1.1.24",
"com.unity.testtools.codecoverage": "1.1.0",
"com.unity.textmeshpro": "2.1.4",
"com.unity.ugui": "1.0.0",
"nuget.moq": "1.0.0",
"com.unity.modules.ai": "1.0.0",

1
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.");

2
com.unity.perception/Tests/Runtime/GroundTruthTests/KeypointGroundTruthTests.cs


var cameraObject = new GameObject();
cameraObject.SetActive(false);
var camera = cameraObject.AddComponent<Camera>();
cameraObject.AddComponent<UniversalAdditionalCameraData>();
camera.orthographic = false;
camera.fieldOfView = 60;
camera.nearClipPlane = 0.3f;

正在加载...
取消
保存