Individual test case
Add a XUnit TraitAttribute
with the key datadog_itr_unskippable
to your test case to mark it as unskippable.
using Xunit;
using Xunit.Abstractions;
public class MyTestSuite
{
[Fact]
[Trait("datadog_itr_unskippable", null)]
public void MyTest()
{
// ...
}
}
Test suite
Add a XUnit TraitAttribute
with the key datadog_itr_unskippable
to your test suite to mark it as unskippable.
If a suite is marked as unskippable, none of the test cases from that suite can be skipped by ITR.
using Xunit;
using Xunit.Abstractions;
[Trait("datadog_itr_unskippable", null)]
public class MyTestSuite
{
[Fact]
public void MyTest()
{
// ...
}
}
Individual test case
Add a NUnit PropertyAttribute
with the key datadog_itr_unskippable
and a non-null value (for example, string.Empty) to your test case to mark it as unskippable.
using NUnit.Framework;
public class MyTestSuite
{
[Test]
[Property("datadog_itr_unskippable", "")]
public void MyTest()
{
// ...
}
}
Test suite
Add a NUnit PropertyAttribute
with the key datadog_itr_unskippable
and a non-null value (for example, string.Empty) to your test suite to mark it as unskippable.
If a suite is marked as unskippable, none of the test cases from that suite can be skipped by ITR.
using NUnit.Framework;
[Property("datadog_itr_unskippable", "")]
public class MyTestSuite
{
[Test]
public void MyTest()
{
// ...
}
}
Individual test case
Add a MsTestV2 TestPropertyAttribute
with the key datadog_itr_unskippable
to your test case to mark it as unskippable.
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class MyTestSuite
{
[TestMethod]
[TestProperty("datadog_itr_unskippable", null)]
public void MyTest()
{
// ...
}
}