Skip to content

Commit 42a366c

Browse files
authored
UT-3195 ignore failing constraint tests (#544)
* ignore failing constraint tests - There are currently known issues with constraint import * code review fix - add fogbug number
1 parent d7d0384 commit 42a366c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

com.unity.formats.fbx/Tests/FbxTests/FbxConstraintTest.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,21 @@ public static IEnumerable TestCases
2323
yield return new TestCaseData(typeof(RotationConstraint), new float[] { 1.2f, 0.8f, 10.3f }, new float[] { 194, 9, 195 }, "m_RotationOffset.z").Returns(1);
2424

2525
/* Test Aim */
26-
yield return new TestCaseData(typeof(AimConstraint), new float[] { 1f, 30f, 10f }, new float[] { 10f, 180f, 10f }, "m_AimVector.x").Returns(1);
26+
yield return new TestCaseData(typeof(AimConstraint), new float[] { 1f, 30f, 10f }, new float[] { 10f, 180f, 10f }, "m_AimVector.x").Returns(1)
27+
.Ignore("UT-3734 (fogbug 1205373): Test fails due to constraint import issues.");
2728
yield return new TestCaseData(typeof(AimConstraint), new float[] { 1f, 30f, 10f }, new float[] { 90f, 45f, 60f }, "m_AimVector.y").Returns(1);
2829
yield return new TestCaseData(typeof(AimConstraint), new float[] { 1f, 30f, 10f }, new float[] { 10f, 180f, 10f }, "m_AimVector.z").Returns(1);
2930
yield return new TestCaseData(typeof(AimConstraint), new float[] { 1, 0.3f, 10f }, new float[] { -4, 39, 45 }, "m_RotationOffset.x").Returns(1);
3031
yield return new TestCaseData(typeof(AimConstraint), new float[] { 1, 4f, 3f }, new float[] { -4, -39, 145 }, "m_RotationOffset.y").Returns(1);
3132
yield return new TestCaseData(typeof(AimConstraint), new float[] { 1.2f, 0.8f, 10.3f }, new float[] { 194, 9, 195 }, "m_RotationOffset.z").Returns(1);
3233

33-
yield return new TestCaseData(typeof(AimConstraint), new float[] { 1f, 2f, 4f }, new float[] { 100f, 80f, 19f }, "m_UpVector.x").Returns(1);
34+
yield return new TestCaseData(typeof(AimConstraint), new float[] { 1f, 2f, 4f }, new float[] { 100f, 80f, 19f }, "m_UpVector.x").Returns(1)
35+
.Ignore("UT-3734 (fogbug 1205373): Test fails due to constraint import issues."); ;
3436
yield return new TestCaseData(typeof(AimConstraint), new float[] { 1f, 2f, 4f }, new float[] { 4f, 154f, 454f }, "m_UpVector.y").Returns(1);
3537
yield return new TestCaseData(typeof(AimConstraint), new float[] { 1f, 2f, 4f }, new float[] { 8f, 14f, 6f }, "m_UpVector.z").Returns(1);
3638

37-
yield return new TestCaseData(typeof(AimConstraint), new float[] { 2f, 30f, 77f }, new float[] { 29.3f, 322f, -190f }, "m_WorldUpVector.x").Returns(1);
39+
yield return new TestCaseData(typeof(AimConstraint), new float[] { 2f, 30f, 77f }, new float[] { 29.3f, 322f, -190f }, "m_WorldUpVector.x").Returns(1)
40+
.Ignore("UT-3734 (fogbug 1205373): Test fails due to constraint import issues.");
3841
yield return new TestCaseData(typeof(AimConstraint), new float[] { 2f, 30f, 77f }, new float[] { 145f, 180f, 40f }, "m_WorldUpVector.y").Returns(1);
3942
yield return new TestCaseData(typeof(AimConstraint), new float[] { 2f, 30f, 77f }, new float[] { 10f, 180f, 10f }, "m_WorldUpVector.z").Returns(1);
4043

@@ -172,6 +175,7 @@ public void TestScaleConstraint()
172175
}
173176

174177
[Test]
178+
[Ignore("UT-3734 (fogbug 1205373): Test fails due to constraint import issues.")]
175179
public void TestParentConstraintExport()
176180
{
177181
List<Object> toExport;
@@ -197,6 +201,7 @@ public void TestParentConstraintExport()
197201
}
198202

199203
[Test]
204+
[Ignore("UT-3734 (fogbug 1205373): Test fails due to constraint import issues.")]
200205
public void TestAimConstraintExport()
201206
{
202207
List<Object> toExport;

0 commit comments

Comments
 (0)