mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
.NET Workflows - Re-enable Declarative Integration Tests (#1080)
* Investigate * Next * Update initialization * Should be ok * Agent definition dx * Link agent definitions * Link agent definitions * Path resolution #2 * Fix path resolution * Another pass * Another * Better * One more * Whoopsie * Update dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/Framework/AgentFactory.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Namespace * Cleanup * Temp config for pipeline * Another temp workaround * Test config: Bing Grounding Tool * Update template * Next pass * Ok now * Cleanup * Test note --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
+9
-8
@@ -1,5 +1,6 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
@@ -15,17 +16,17 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests;
|
||||
public sealed class DeclarativeCodeGenTest(ITestOutputHelper output) : WorkflowTest(output)
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("SendActivity.yaml", "SendActivity.json", Skip = "Needs configuration")]
|
||||
[InlineData("InvokeAgent.yaml", "InvokeAgent.json", Skip = "Needs configuration")]
|
||||
[InlineData("ConversationMessages.yaml", "ConversationMessages.json", Skip = "Needs configuration")]
|
||||
[InlineData("SendActivity.yaml", "SendActivity.json")]
|
||||
[InlineData("InvokeAgent.yaml", "InvokeAgent.json")]
|
||||
[InlineData("ConversationMessages.yaml", "ConversationMessages.json")]
|
||||
public Task ValidateCaseAsync(string workflowFileName, string testcaseFileName) =>
|
||||
this.RunWorkflowAsync(Path.Combine("Workflows", workflowFileName), testcaseFileName);
|
||||
this.RunWorkflowAsync(Path.Combine(Environment.CurrentDirectory, "Workflows", workflowFileName), testcaseFileName);
|
||||
|
||||
[Theory]
|
||||
[InlineData("Marketing.yaml", "Marketing.json", Skip = "Needs configuration")]
|
||||
[InlineData("MathChat.yaml", "MathChat.json", Skip = "Needs configuration")]
|
||||
[InlineData("DeepResearch.yaml", "DeepResearch.json", Skip = "Needs configuration")]
|
||||
[InlineData("HumanInLoop.yaml", "HumanInLoop.json", Skip = "TODO")]
|
||||
[InlineData("Marketing.yaml", "Marketing.json")]
|
||||
[InlineData("MathChat.yaml", "MathChat.json")]
|
||||
[InlineData("DeepResearch.yaml", "DeepResearch.json", Skip = "Long running")]
|
||||
[InlineData("HumanInLoop.yaml", "HumanInLoop.json", Skip = "Needs test support")]
|
||||
public Task ValidateScenarioAsync(string workflowFileName, string testcaseFileName) =>
|
||||
this.RunWorkflowAsync(Path.Combine(GetRepoFolder(), "workflow-samples", workflowFileName), testcaseFileName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user