This product is not supported for your selected Datadog site. ().
互換性
Test Impact Analysis には ddtest >= 1.14.0 が必要です。
セットアップ
Test Optimization
Test Impact Analysis をセットアップする前に、Go 向け Test Optimization をセットアップします。Agent 経由でデータをレポートする場合は、v6.40 以降または v7.40 以降を使用します。
Activate Test Impact Analysis for the test service
You, or a user in your organization with the Intelligent Test Runner Activation (intelligent_test_runner_activation_write) permission, must activate Test Impact Analysis on the Test Service Settings page.
Test Impact Analysis を有効にしてテストを実行する
セットアップ完了後、以下のコードカバレッジオプションを指定して ddtest instrument go test を使用し、テストを実行します。
ddtest instrument go test -cover -covermode=count -coverpkg=./... ./...
-cover: Test Impact Analysis 機能は Go の組み込みコードカバレッジプロセッサーを使用するため、go test コマンドでコードカバレッジの収集を有効にする必要があります。
-covermode: count または atomic のいずれかにする必要があります。set はサポートされていないため、この値を設定すると Test Impact Analysis が無効になります。