Cette page n'est pas encore disponible en français, sa traduction est en cours. Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.
Compatibility
Intelligent Test Runner is only supported on dd-trace>= 2.22.0 (execute dd-trace --version to get the version of the tool).
Setup
Prior to setting up Intelligent Test Runner, set up Test Visibility for .NET. If you are reporting data through the Agent, use v6.40+/v7.40+.
To enable Intelligent Test Runner, set the following environment variables:
After setting these environment variables, 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
UI activation
In addition to setting the environment variables, you or a user in your organization with “Intelligent Test Runner Activation” permissions must activate the Intelligent Test Runner on the Test Service Settings page.
Further Reading
Documentation, liens et articles supplémentaires utiles: