Skip to content

Commit ad6ec84

Browse files
committed
Change com.unity.testframework.graphics package to optional
1 parent 7b82588 commit ad6ec84

File tree

5 files changed

+13
-42
lines changed

5 files changed

+13
-42
lines changed

Assets/VisualRegressionExample/Tests/Runtime/ImageAssertTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) 2021-2023 Koji Hasegawa.
22
// This software is released under the MIT License.
33

4+
#if ENABLE_GRAPHICS_TEST_FRAMEWORK
45
using System.Collections;
56
using System.IO;
67
using System.Threading.Tasks;
@@ -125,3 +126,4 @@ private class CoroutineRunner : MonoBehaviour
125126
}
126127
}
127128
}
129+
#endif

Assets/VisualRegressionExample/Tests/Runtime/VisualRegressionExample.Tests.asmdef

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
"defineConstraints": [
2020
"UNITY_INCLUDE_TESTS"
2121
],
22-
"versionDefines": [],
22+
"versionDefines": [
23+
{
24+
"name": "com.unity.testframework.graphics",
25+
"expression": "",
26+
"define": "ENABLE_GRAPHICS_TEST_FRAMEWORK"
27+
}
28+
],
2329
"noEngineReferences": false
2430
}

Packages/manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"com.unity.ide.visualstudio": "2.0.22",
1313
"com.unity.inputsystem": "1.7.0",
1414
"com.unity.test-framework": "1.4.6",
15-
"com.unity.testframework.graphics": "7.17.0-exp.1",
1615
"com.unity.testtools.codecoverage": "1.2.4",
1716
"com.unity.textmeshpro": "2.1.6",
1817
"com.unity.timeline": "1.2.18",

Packages/packages-lock.json

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -164,23 +164,6 @@
164164
},
165165
"url": "https://packages.unity.com"
166166
},
167-
"com.unity.testframework.graphics": {
168-
"version": "7.17.0-exp.1",
169-
"depth": 0,
170-
"source": "registry",
171-
"dependencies": {
172-
"com.unity.modules.vr": "1.0.0",
173-
"com.unity.modules.xr": "1.0.0",
174-
"com.unity.addressables": "1.17.15",
175-
"com.unity.xr.management": "4.0.5",
176-
"com.unity.nuget.newtonsoft-json": "2.0.0",
177-
"com.unity.xr.legacyinputhelpers": "2.1.8",
178-
"com.unity.external.test-protocol": "1.0.0-preview",
179-
"com.unity.testtools.codecoverage": "1.2.0",
180-
"com.unity.modules.imageconversion": "1.0.0"
181-
},
182-
"url": "https://packages.unity.com"
183-
},
184167
"com.unity.testtools.codecoverage": {
185168
"version": "1.2.4",
186169
"depth": 0,
@@ -221,29 +204,6 @@
221204
"com.unity.modules.imgui": "1.0.0"
222205
}
223206
},
224-
"com.unity.xr.legacyinputhelpers": {
225-
"version": "2.1.9",
226-
"depth": 1,
227-
"source": "registry",
228-
"dependencies": {
229-
"com.unity.modules.vr": "1.0.0",
230-
"com.unity.modules.xr": "1.0.0"
231-
},
232-
"url": "https://packages.unity.com"
233-
},
234-
"com.unity.xr.management": {
235-
"version": "4.0.5",
236-
"depth": 1,
237-
"source": "registry",
238-
"dependencies": {
239-
"com.unity.modules.vr": "1.0.0",
240-
"com.unity.modules.xr": "1.0.0",
241-
"com.unity.modules.subsystems": "1.0.0",
242-
"com.unity.subsystemregistration": "1.0.6",
243-
"com.unity.xr.legacyinputhelpers": "2.1.7"
244-
},
245-
"url": "https://packages.unity.com"
246-
},
247207
"net.tnrd.nsubstitute": {
248208
"version": "4.2.2",
249209
"depth": 0,

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ Assets
160160
└── VisualRegressionExample
161161
```
162162

163+
> [!TIP]
164+
> このテストを実行するには
165+
> [Graphics Test Framework](https://docs.unity3d.com/Packages/com.unity.testframework.graphics@latest)
166+
> パッケージをインストールする必要があります。
163167
164168

165169
## 備考

0 commit comments

Comments
 (0)