- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Intelligent Test Runner is only supported on dd-trace>= 2.22.0
(execute dd-trace --version
to get the version of the tool).
Prior to setting up Intelligent Test Runner, set up Test Visibility for .NET. If you are reporting data through the Agent, use v6.40 and later or v7.40 and later.
You, or a user in your organization with the Intelligent Test Runner Activation (intelligent_test_runner_activation_write
) permission, must activate the Intelligent Test Runner on the Test Service Settings page.
After completing setup, run your tests as you normally do by using dotnet test or VSTest.Console.exe:
dd-trace ci run --dd-service=my-dotnet-app --dd-env=ci -- dotnet test
dd-trace ci run --dd-service=my-dotnet-app --dd-env=ci -- VSTest.Console.exe {test_assembly}.dll
You can override the Intelligent Test Runner’s behavior and prevent specific tests from being skipped. These tests are referred to as unskippable tests.
The Intelligent Test Runner uses code coverage data to determine whether or not tests should be skipped. In some cases, this data may not be sufficient to make this determination.
Examples include:
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()
{
// ...
}
}
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()
{
// ...
}
}
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()
{
// ...
}
}
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()
{
// ...
}
}
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()
{
// ...
}
}