Conversation
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 63 out of 76 changed files in this pull request and generated 10 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dev/microsoft-agents-testing/microsoft_agents/testing/integration/data_driven/load_ddts.py
Show resolved
Hide resolved
dev/microsoft-agents-testing/microsoft_agents/testing/integration/core/client/agent_client.py
Show resolved
Hide resolved
dev/microsoft-agents-testing/microsoft_agents/testing/integration/data_driven/load_ddts.py
Show resolved
Hide resolved
dev/microsoft-agents-testing/microsoft_agents/testing/assertions/type_defs.py
Show resolved
Hide resolved
dev/microsoft-agents-testing/microsoft_agents/testing/assertions/assertions.py
Outdated
Show resolved
Hide resolved
dev/integration/tests/data_driven/quickstart/test_quickstart_sample.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 134 out of 153 changed files in this pull request and generated 12 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dev/integration/agents/basic_agent/python/src/weather/plugins/adaptive_card_plugin.py
Show resolved
Hide resolved
dev/integration/agents/basic_agent/python/src/weather/plugins/adaptive_card_plugin.py
Show resolved
Hide resolved
...icrosoft-agents-testing/microsoft_agents/testing/integration/data_driven/data_driven_test.py
Show resolved
Hide resolved
...icrosoft-agents-testing/microsoft_agents/testing/integration/data_driven/data_driven_test.py
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 134 out of 153 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dev/microsoft-agents-testing/microsoft_agents/testing/integration/data_driven/load_ddts.py
Show resolved
Hide resolved
...icrosoft-agents-testing/microsoft_agents/testing/integration/data_driven/data_driven_test.py
Show resolved
Hide resolved
dev/microsoft-agents-testing/microsoft_agents/testing/integration/core/integration.py
Show resolved
Hide resolved
...microsoft-agents-testing/microsoft_agents/testing/integration/core/aiohttp/aiohttp_runner.py
Show resolved
Hide resolved
…m/microsoft/Agents-for-python into users/robrandao/data-driven-tests
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 129 out of 146 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Microsoft 365 Agents SDK for Python - Testing Framework
A comprehensive testing framework designed specifically for Microsoft 365 Agents SDK, providing essential utilities and abstractions to streamline integration testing, authentication, data-driven testing, and end-to-end agent validation
Why This Package Exists
Building and testing conversational agents presents unique challenges that standard testing frameworks don't address. This package eliminates these pain points by providing powerful abstractions specifically designed for agent testing scenarios, including support for data-driven testing with YAML/JSON configurations.
Key Benefits:
Key Features
🔐 Authentication Utilities
Generate OAuth2 access tokens for testing secured agents with Microsoft Authentication Library (MSAL) integration.
Features:
Example:
🧪 Integration Test Framework
Pre-built pytest fixtures and abstractions for agent integration testing.
Features:
Example:
🤖 Agent Communication Clients
High-level clients for sending and receiving activities from agents under test.
Features:
expectRepliesdelivery modeAgentClient Example:
ResponseClient Example:
📋 Data-Driven Testing
Write test scenarios in YAML or JSON files and execute them automatically. Perfect for creating reusable test suites, regression tests, and living documentation.
Features:
Using the @DDT Decorator
The @DDT (data-driven tests) decorator automatically loads test files and generates pytest test methods:
This will:
.yamland.jsonfiles fromtests/my_agent/test_cases(and subdirectories ifrecursive=True)test_data_driven__greeting_test)✅ Advanced Assertions Framework
Powerful assertion system for validating agent responses with flexible matching criteria.
ModelAssertion
Create assertions for validating lists of activities:
From configuration dictionary:
Selectors
Filter activities before validation:
From configuration:
Quantifiers
Control how many activities must match the assertion:
Field Assertions
Test individual fields with operators:
Verbose checking with error details:
Activity Assertions
Check entire activities:
Nested field checking: