This product is not supported for your selected Datadog site. ().
互換性
Test Impact Analysis は dd-trace>= 2.22.0 にのみ対応しています。ツールのバージョンは dd-trace --version で確認できます。
セットアップ
テストの最適化
Test Impact Analysis を設定する前に、.NET 向け 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.
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 Test Impact Analysis 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.
例:
テキストファイルからデータを読み込むテスト。
テスト対象のコード以外の API とやりとりするテスト (リモートの REST API など)。
Designating tests as unskippable ensures that Test Impact Analysis runs them regardless of coverage data.