< Summary

Class:SanityTest
Assembly:bamlab.test.playmode
File(s):/github/workspace/Assets/Tests/PlayMode/SanityTest.cs
Covered lines:0
Uncovered lines:7
Coverable lines:7
Total lines:24
Line coverage:0% (0 of 7)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:1
Method coverage:0% (0 of 1)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SanityCheck()0%12300%

File(s)

/github/workspace/Assets/Tests/PlayMode/SanityTest.cs

#LineLine coverage
 1using System.Collections;
 2using NUnit.Framework;
 3using UnityEngine;
 4using UnityEngine.TestTools;
 5
 6public class SanityTest {
 7  [UnityTest]
 08  public IEnumerator SanityCheck() {
 9    // Arrange
 010    GameObject testObject = new GameObject("TestObject");
 11
 12    // Act
 013    testObject.AddComponent<BoxCollider>();
 14
 15    // Assert
 016    Assert.IsTrue(testObject.GetComponent<BoxCollider>() != null,
 17                  "BoxCollider should be added to the test object");
 18
 19    // Clean up
 020    Object.Destroy(testObject);
 21
 022    yield return null;
 023  }
 24}

Methods/Properties

SanityCheck()