< Summary

Class:SanityTest
Assembly:bamlab.test.editmode
File(s):/github/workspace/Assets/Tests/EditMode/SanityTest.cs
Covered lines:5
Uncovered lines:2
Coverable lines:7
Total lines:22
Line coverage:71.4% (5 of 7)
Covered branches:0
Total branches:0
Covered methods:2
Total methods:2
Method coverage:100% (2 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SanityTestSimplePasses()0%1.041066.67%
SanityTestWithEnumeratorPasses()0%3.143075%

File(s)

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

#LineLine coverage
 1using NUnit.Framework;
 2using UnityEngine;
 3using UnityEngine.TestTools;
 4using System.Collections;
 5
 6public class SanityTest {
 7  [Test]
 18  public void SanityTestSimplePasses() {
 9    // Use the Assert class to test conditions
 110    Assert.Pass("This test passes.");
 011  }
 12
 13  // A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use
 14  // `yield return null;` to skip a frame.
 15  [UnityTest]
 116  public IEnumerator SanityTestWithEnumeratorPasses() {
 17    // Use the Assert class to test conditions.
 18    // Use yield to skip a frame.
 119    yield return null;
 120    Assert.Pass("This test passes after skipping a frame.");
 021  }
 22}