- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Test Impact Analysis is only supported on dd-sdk-swift-testing
in versions 2.2.0
+.
Prior to setting up Test Impact Analysis, set up Test Optimization for Swift. The code coverage option must also be enabled in the test settings of your scheme or test plan, or --enable-code-coverage
must be added to your Swift test command (if using a SPM target).
If you are reporting data through the Agent, use v6.40 and later or v7.40 and later.
Intelligent Test Runner Activation (intelligent_test_runner_activation_write
) 권한이 있는 조직의 사용자는 Test Service Settings 페이지에서 Intelligent Test Runner를 활성화해야 합니다.
After completing setup, run your tests as you normally do.
You can override the Test Impact Analysis’s behavior and prevent specific tests from being skipped. These tests are referred to as unskippable tests.
Test Impact Analysis 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:
Designating tests as unskippable ensures that Test Impact Analysis runs them regardless of coverage data.
import XCTest
import DatadogSDKTesting
class SomeTestCase: XCTestCase {
func testMethod() {}
}
extension SomeTestCase: ExtendableTaggedType {
static func extendableTypeTags() -> ExtendableTypeTags {
withTagger { tagger in
// Mark all class unskippable
tagger.set(type: .itrSkippable, to: false)
// Set only one method unskippable
tagger.set(instance: .itrSkippable, to: false, method: #selector(testMethod))
}
}
}
Test Impact Analysis can be disabled locally by setting the DD_CIVISIBILITY_ITR_ENABLED
environment variable to false
or 0
.
DD_CIVISIBILITY_ITR_ENABLED
(Optional)(true)