Resolve WES-113 "Commons tests"

This commit is contained in:
Tibe Habils
2023-03-23 11:35:14 +00:00
parent 2581cd6137
commit 5a5a1f1542
27 changed files with 624 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d322616d16e32135eb3735e3bb704d05
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;
using UnityEngine.SceneManagement;
public class BasicTests
{
// A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use
// `yield return null;` to skip a frame.
[UnityTest]
public IEnumerator BasicTestsWithEnumeratorPasses()
{
SceneManager.LoadScene("TemplateCourse");
// Use the Assert class to test conditions.
// Use yield to skip a frame.
yield return null;
// var courseObject = GameObject.findGameObjectWithTag("Course");
// Assert.IsNotNull(courseObject);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 98c67df90515b0fec8184240768037cd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,6 @@
{
"name": "PlayModeTests",
"optionalUnityReferences": [
"TestAssemblies"
]
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 1606ac91cab3333be8c7e7281c392595
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: