< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SanityTestSimplePasses()0%2100%
SanityTestWithEnumeratorPasses()0%12300%

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]
 08  public void SanityTestSimplePasses() {
 9    // Use the Assert class to test conditions
 010    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]
 016  public IEnumerator SanityTestWithEnumeratorPasses() {
 17    // Use the Assert class to test conditions.
 18    // Use yield to skip a frame.
 019    yield return null;
 020    Assert.Pass("This test passes after skipping a frame.");
 021  }
 22}