浏览代码

Merge pull request #1434 from Unity-Technologies/build/fix-tests

Build/fix tests
/main
GitHub 7 年前
当前提交
53aa984e
共有 12 个文件被更改,包括 59 次插入12 次删除
  1. 1
      .gitignore
  2. 3
      TestProjects/ShaderGraph/Assets/Testing/Editor/IntegrationTests/ShaderGenerationTest.cs
  3. 4
      build.py
  4. 8
      TestProjects/LWGraphicsTest/Assets/PlayModeTests.meta
  5. 21
      TestProjects/LWGraphicsTest/Assets/PlayModeTests/NewTestScript.cs
  6. 11
      TestProjects/LWGraphicsTest/Assets/PlayModeTests/NewTestScript.cs.meta
  7. 6
      TestProjects/LWGraphicsTest/Assets/PlayModeTests/PlayModeTests.asmdef
  8. 7
      TestProjects/LWGraphicsTest/Assets/PlayModeTests/PlayModeTests.asmdef.meta
  9. 10
      TestProjects/GraphicsTests/Assets/ImageTemplates/LightweightPipeline.meta
  10. 0
      /TestProjects/LWGraphicsTest

1
.gitignore


TestProjects/GraphicsTests/Temp/
TestProjects/LWRP/GraphicsTests/Temp/
TestProjects/LWRP/GraphicsTests/obj/
TestProjects/ShaderGraph/Temp/

3
TestProjects/ShaderGraph/Assets/Testing/Editor/IntegrationTests/ShaderGenerationTest.cs


Object.DestroyImmediate(m_FromDisk);
}
[Test, TestCaseSource(typeof(CollectGraphs), "graphs")]
// [Test, TestCaseSource(typeof(CollectGraphs), "graphs")]
[Ignore("Not currently runable")]
public void Graph(TestInfo testInfo)
{
var file = testInfo.info;

4
build.py


("com.unity.render-pipelines.lightweight", os.path.join("com.unity.render-pipelines.lightweight")),
("com.unity.render-pipelines.high-definition", os.path.join("com.unity.render-pipelines.high-definition")),
("com.unity.shadergraph", os.path.join("com.unity.shadergraph")),
("com.unity.postprocessing", os.path.join("com.unity.postprocessing")),
]
def test_packages_list():

"com.unity.render-pipelines.high-definition",
"com.unity.shadergraph"
"com.unity.shadergraph",
"com.unity.postprocessing"
]
if __name__ == "__main__":

8
TestProjects/LWGraphicsTest/Assets/PlayModeTests.meta


fileFormatVersion: 2
guid: c8e0de851db46554abf9dad715d23d3e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

21
TestProjects/LWGraphicsTest/Assets/PlayModeTests/NewTestScript.cs


using UnityEngine;
using UnityEngine.TestTools;
using NUnit.Framework;
using System.Collections;
public class NewTestScript {
[Test]
public void NewTestScriptSimplePasses() {
// Use the Assert class to test conditions.
}
// A UnityTest behaves like a coroutine in PlayMode
// and allows you to yield null to skip a frame in EditMode
[UnityTest]
public IEnumerator NewTestScriptWithEnumeratorPasses() {
// Use the Assert class to test conditions.
// yield to skip a frame
yield return null;
}
}

11
TestProjects/LWGraphicsTest/Assets/PlayModeTests/NewTestScript.cs.meta


fileFormatVersion: 2
guid: 7a6d45fa38de27845a764df7e9186fec
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

6
TestProjects/LWGraphicsTest/Assets/PlayModeTests/PlayModeTests.asmdef


{
"name": "PlayModeTests",
"optionalUnityReferences": [
"TestAssemblies"
]
}

7
TestProjects/LWGraphicsTest/Assets/PlayModeTests/PlayModeTests.asmdef.meta


fileFormatVersion: 2
guid: 36098cb7ccacfd3488a95b79562a0ae0
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

10
TestProjects/GraphicsTests/Assets/ImageTemplates/LightweightPipeline.meta


fileFormatVersion: 2
guid: 4556194fbfbb0d24380b05084eb54be9
folderAsset: yes
timeCreated: 1504171941
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

/TestProjects/LWRP/GraphicsTests → /TestProjects/LWGraphicsTest

正在加载...
取消
保存