Skip to content

test: reuse graphics test scripts for Unity 2022 test projects #426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ void SetupScenes(int scneneIndex)
{
Debug.LogError("Unable to Find MainCamera in " + EditorBuildSettings.scenes[scneneIndex].path );
}
HDRPUTS_GraphicsTestSettings settings = cameraList[0].gameObject.GetComponent<HDRPUTS_GraphicsTestSettings>();
UTS_GraphicsTestSettings settings = cameraList[0].gameObject.GetComponent<UTS_GraphicsTestSettings>();


if ( settings == null )
{
settings = cameraList[0].gameObject.AddComponent<HDRPUTS_GraphicsTestSettings>();
settings = cameraList[0].gameObject.AddComponent<UTS_GraphicsTestSettings>();
}
settings.ImageComparisonSettings.ImageResolution = UnityEngine.TestTools.Graphics.ImageComparisonSettings.Resolution.w960h540;
settings.ImageComparisonSettings.PerPixelCorrectnessThreshold = 0.005f;
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "HDRPUTS_GraphicsTests",
"rootNamespace": "",
"references": [
"UnityEngine.TestTools.Graphics",
"UnityEngine.TestRunner",
"UnityEditor.TestRunner"
"UnityEditor.TestRunner",
"Unity.ToonShader.GraphicsTest"
],
"includePlatforms": [],
"excludePlatforms": [],
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"com.unity.testframework.graphics": "7.8.14-preview",
"com.unity.textmeshpro": "3.0.9",
"com.unity.toonshader": "file:../../../com.unity.toonshader",
"com.unity.toon-graphics-test": "file:../../../com.unity.toon-graphics-test",
"com.unity.ugui": "1.0.0",
"com.unity.xr.management": "4.4.0",
"com.unity.modules.ai": "1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ void SetupScenes(int scneneIndex)
{
Debug.LogError("Unable to Find MainCamera in " + EditorBuildSettings.scenes[scneneIndex].path );
}
HDRPUTS_GraphicsTestSettings settings = cameraList[0].gameObject.GetComponent<HDRPUTS_GraphicsTestSettings>();
UTS_GraphicsTestSettings settings = cameraList[0].gameObject.GetComponent<UTS_GraphicsTestSettings>();


if ( settings == null )
{
settings = cameraList[0].gameObject.AddComponent<HDRPUTS_GraphicsTestSettings>();
settings = cameraList[0].gameObject.AddComponent<UTS_GraphicsTestSettings>();
}
settings.ImageComparisonSettings.ImageResolution = UnityEngine.TestTools.Graphics.ImageComparisonSettings.Resolution.w960h540;
settings.ImageComparisonSettings.PerPixelCorrectnessThreshold = 0.005f;
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "HDRPUTS_GraphicsTests",
"rootNamespace": "",
"references": [
"UnityEngine.TestTools.Graphics",
"UnityEngine.TestRunner",
"UnityEditor.TestRunner"
"UnityEditor.TestRunner",
"Unity.ToonShader.GraphicsTest"
],
"includePlatforms": [],
"excludePlatforms": [],
Expand Down

This file was deleted.

This file was deleted.

Loading