浏览代码

Add Popup dialog to be able to run the tests on only one render pipeline asset

/main
Remy 6 年前
当前提交
1d14feab
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 10
      Tests/Scripts/Editor/GraphicTests/Framework/TestFramework.cs

10
Tests/Scripts/Editor/GraphicTests/Framework/TestFramework.cs


// Change the SRP before a full batch of tests
public virtual string _SRP_ID { get { return "NONE"; } }
private static bool doOnlyFirstRenderPipelineAsset = true;
doOnlyFirstRenderPipelineAsset = !EditorUtility.DisplayDialog(
"Graphic Tests",
"Do you want to run the test(s) on all available Render Pipeline assets or only the first (main) one ?",
"Hell YEAH, go for it !",
"No thanks, just one please.");
}
[OneTimeTearDown]

if (testSetup.renderPipelines == null || testSetup.renderPipelines.Length == 0)
yield break;
for (int r = 0; r < testSetup.renderPipelines.Length; ++r)
for (int r = 0; r < (doOnlyFirstRenderPipelineAsset?1:testSetup.renderPipelines.Length); ++r)
{
if (r==0)
testSetup.Setup();

正在加载...
取消
保存