Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 10 additions & 4 deletions .yamato/postprocessing-osx-metal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ PostProcessing_OSX_Metal_playmode_mono_Linear_trunk:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
UTR_VERSION: "current"
commands:
- brew tap Unity-Technologies/homebrew-unity git@github.cds.internal.unity3d.com:unity/homebrew-unity.git
- brew install Unity-Technologies/homebrew-unity/unity-downloader-cli
- command: |-
brew tap Unity-Technologies/homebrew-unity git@github.cds.internal.unity3d.com:unity/homebrew-unity.git;
brew trust unity-technologies/unity;
brew install Unity-Technologies/homebrew-unity/unity-downloader-cli;
brew upgrade Unity-Technologies/homebrew-unity/unity-downloader-cli;
- unity-downloader-cli --source-file unity_revision.txt -c editor -c il2cpp --wait --published-only
- command: curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr
retries: 2
Expand Down Expand Up @@ -50,8 +53,11 @@ PostProcessing_OSX_Metal_Standalone_mono_Linear_trunk:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
UTR_VERSION: "current"
commands:
- brew tap Unity-Technologies/homebrew-unity git@github.cds.internal.unity3d.com:unity/homebrew-unity.git
- brew install Unity-Technologies/homebrew-unity/unity-downloader-cli
- command: |-
brew tap Unity-Technologies/homebrew-unity git@github.cds.internal.unity3d.com:unity/homebrew-unity.git;
brew trust unity-technologies/unity;
brew install Unity-Technologies/homebrew-unity/unity-downloader-cli;
brew upgrade Unity-Technologies/homebrew-unity/unity-downloader-cli;
- unity-downloader-cli --source-file unity_revision.txt -c editor -c il2cpp --wait --published-only
- command: curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr
retries: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
public class PostProcessingGraphicsTests
{
[UnityTest, Category("PostProcessing")]
[PrebuildSetup("SetupGraphicsTestCases")]
[UseGraphicsTestCases]
public IEnumerator Run(GraphicsTestCase testCase)
[SceneGraphicsTest("Assets/Scenes")]
public IEnumerator Run(SceneGraphicsTestCase testCase)
{
SceneManager.LoadScene(testCase.ScenePath);

Expand All @@ -30,14 +29,14 @@ public IEnumerator Run(GraphicsTestCase testCase)
for (int i = 0; i < settings.WaitFrames; i++)
yield return null;

ImageAssert.AreEqual(testCase.ReferenceImage, camera, settings.ImageComparisonSettings);
ImageAssert.AreEqual(testCase.ReferenceImage.Image, camera, settings.ImageComparisonSettings);
}

#if UNITY_EDITOR
[TearDown]
public void DumpImagesInEditor()
{
UnityEditor.TestTools.Graphics.ResultsUtility.ExtractImagesFromTestProperties(TestContext.CurrentContext.Test);
// TearDown is handled automatically by the graphics test framework
}

#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ public class SetupGraphicsTestCases : IPrebuildSetup
{
public void Setup()
{
// Work around case #1033694, unable to use PrebuildSetup types directly from assemblies that don't have special names.
// Once that's fixed, this class can be deleted and the SetupGraphicsTestCases class in Unity.TestFramework.Graphics.Editor
// can be used directly instead.
UnityEditor.TestTools.Graphics.SetupGraphicsTestCases.Setup("Assets/ReferenceImages");
// This setup is no longer needed as of the new Graphics Test Framework.
// The setup is done automatically. If you wish to override the default settings,
// use the GraphicsTestBuildSettings asset instead.
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading