< Summary

Class:Tests.FacialFeatureController_VisualTests
Assembly:AvatarShapeVisualTests
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/Avatar/Tests/VisualTests/FacialFeatureController_VisualTests.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:42
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
MouthWithMask_Generate()0%12300%
MouthWithMask()0%30500%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/Avatar/Tests/VisualTests/FacialFeatureController_VisualTests.cs

#LineLine coverage
 1using System.Collections;
 2using AvatarShape_Tests;
 3using DCL;
 4using DCL.Helpers;
 5using NUnit.Framework;
 6using UnityEngine;
 7using UnityEngine.TestTools;
 8using WaitUntil = DCL.WaitUntil;
 9
 10namespace Tests
 11{
 12    public class FacialFeatureController_VisualTests : VisualTestsBase
 13    {
 14        [UnityTest]
 15        [VisualTest]
 16        [Explicit]
 17        [Category("Explicit")]
 018        public IEnumerator MouthWithMask_Generate() { yield return VisualTestHelpers.GenerateBaselineForTest(MouthWithMa
 19
 20        [UnityTest]
 21        [VisualTest]
 22        [Category("Explicit")]
 23        [Explicit("Something is wrong with the avatar renderer material")]
 24        public IEnumerator MouthWithMask()
 25        {
 026            yield return InitVisualTestsScene("AvatarShapeVisualTests_MouthWithMask");
 27
 028            AvatarAssetsTestHelpers.CreateTestCatalogLocal();
 029            var model = AvatarShapeTestHelpers.GetTestAvatarModel("Avatar #1", "TestAvatar_MaskMouth.json");
 030            AvatarShape avatar = AvatarShapeTestHelpers.CreateAvatarShape(scene, model);
 31
 032            Vector3 camPos = new Vector3(-0.75f, 2.0f, 2.25f);
 033            Vector3 camTarget = avatar.transform.position + Vector3.up * 2.0f;
 34
 035            VisualTestHelpers.RepositionVisualTestsCamera(VisualTestController.i.camera, camPos, camTarget);
 36
 037            yield return new WaitUntil(() => avatar.everythingIsLoaded, 20);
 38
 039            yield return VisualTestHelpers.TakeSnapshot();
 040        }
 41    }
 42}