Skill 4.3.3

Design and implement a strategy for testing, including unit tests, regression tests, integration tests, and automated evaluations

Key Concepts

Unit tests cover deterministic code: tools, validators, middleware and routing rules, with model calls mocked. Integration tests run agents against real services in a test environment to check authentication, tool contracts and workflow wiring. Regression tests replay a fixed dataset of past conversations and known failures to confirm that a change has not broken them.

Automated evaluations score outputs with evaluators (task adherence, tool call accuracy, groundedness, safety) against thresholds; because outputs vary, tests assert on scores and pass rates over a dataset rather than exact strings. The Foundry evaluation GitHub Action or Azure DevOps task runs evaluations in pipelines.