Skip to content

A programming framework for agentic AI

fix: dotnet test CI and standardize test categories (#5286)

Griffin Bassman9af6883fbee6
diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml
index 67105c844..1da80b327 100644
--- a/.github/workflows/dotnet-build.yml
+++ b/.github/workflows/dotnet-build.yml
@@ -102,8 +102,10 @@ jobs:
run: |
echo "Build AutoGen"
dotnet build --no-restore --configuration Release -bl /p:SignAssembly=true
- - name: Unit Test
- run: dotnet test --no-build -bl --configuration Release --filter type=!integration
+ - name: Unit Test V1
+ run: dotnet test --no-build -bl --configuration Release --filter "Category=UnitV1"
+ - name: Unit Test V2
+ run: dotnet test --no-build -bl --configuration Release --filter "Category=UnitV2"
integration-test:
strategy:
@@ -155,7 +157,7 @@ jobs:
echo "Build AutoGen"
dotnet build --no-restore --configuration Release -bl /p:SignAssembly=true
- name: Integration Test
- run: dotnet --version && dotnet test --no-build -bl --configuration Release --filter type=integration
+ run: dotnet --version && dotnet test --no-build -bl --configuration Release --filter "Category=Integration"
- name: Restore the global.json
run: rm global.json && git checkout -- global.json
diff --git a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientAgentTest.cs b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientAgentTest.cs
index 91097d748..4dfa9c8aa 100644
--- a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientAgentTest.cs
+++ b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientAgentTest.cs
@@ -7,9 +7,11 @@ using AutoGen.Anthropic.Utils;
using AutoGen.Core;
using AutoGen.Tests;
using FluentAssertions;
+using Xunit;
namespace AutoGen.Anthropic.Tests;
+[Trait("Category", "UnitV1")]
public class AnthropicClientAgentTest
{
[ApiKeyFact("ANTHROPIC_API_KEY")]
diff --git a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientTest.cs b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientTest.cs
index c98a81079..3d6dae018 100644
--- a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientTest.cs
+++ b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientTest.cs
@@ -13,6 +13,7 @@ using Xunit;
namespace AutoGen.Anthropic.Tests;
+[Trait("Category", "UnitV1")]
public class AnthropicClientTests
{
[ApiKeyFact("ANTHROPIC_API_KEY")]
diff --git a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs
index ae1a9d576..5d2e0721c 100644
--- a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs
+++ b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs
@@ -15,6 +15,7 @@ using Xunit;
namespace AutoGen.AzureAIInference.Tests;
+[Trait("Category", "UnitV1")]
public partial class ChatCompletionClientAgentTests
{
/// <summary>
diff --git a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatRequestMessageTests.cs b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatRequestMessageTests.cs
index 3eacada41..c480a1909 100644
--- a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatRequestMessageTests.cs
+++ b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatRequestMessageTests.cs
@@ -14,6 +14,7 @@ using Xunit;
namespace AutoGen.AzureAIInference.Tests;
+[Trait("Category", "UnitV1")]
public class ChatRequestMessageTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs
index 1d2becb7d..7c61c9fa0 100644
--- a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs
+++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs
@@ -8,6 +8,7 @@ using Xunit.Abstractions;
namespace AutoGen.DotnetInteractive.Tests;
[Collection("Sequential")]
+[Trait("Category", "UnitV1")]
public class DotnetInteractiveServiceTest : IDisposable
{
private ITestOutputHelper _output;
diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveStdioKernelConnectorTests.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveStdioKernelConnectorTests.cs
index cb3478001..003e23c20 100644
--- a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveStdioKernelConnectorTests.cs
+++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveStdioKernelConnectorTests.cs
@@ -10,6 +10,7 @@ using Xunit.Abstractions;
namespace AutoGen.DotnetInteractive.Tests;
[Collection("Sequential")]
+[Trait("Category", "UnitV1Kernel")]
public class DotnetInteractiveStdioKernelConnectorTests : IDisposable
{
private string _workingDir;
diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs
index bb89762ef..9195231ad 100644
--- a/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs
+++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs
@@ -8,6 +8,7 @@ using Xunit;
namespace AutoGen.DotnetInteractive.Tests;
[Collection("Sequential")]
+[Trait("Category", "UnitV1Kernel")]
public class InProcessDotnetInteractiveKernelBuilderTest
{
[Fact]
diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs
index 21ff5850b..61e1d9f21 100644
--- a/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs
+++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs
@@ -8,6 +8,7 @@ using Xunit;
namespace AutoGen.DotnetInteractive.Tests;
+[Trait("Category", "UnitV1")]
public class MessageExtensionTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs b/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs
index ae8e4a621..5b807e6f4 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs
@@ -10,6 +10,7 @@ using Xunit;
namespace AutoGen.Gemini.Tests;
+[Trait("Category", "UnitV1")]
public class FunctionContractExtensionTests
{
private readonly Functions functions = new Functions();
diff --git a/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs b/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs
index fe2a47387..b169252c3 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs
@@ -6,10 +6,12 @@ using AutoGen.Gemini.Extension;
using AutoGen.Tests;
using FluentAssertions;
using Google.Cloud.AIPlatform.V1;
+using Xunit;
using Xunit.Abstractions;
using static Google.Cloud.AIPlatform.V1.Part;
namespace AutoGen.Gemini.Tests;
+[Trait("Category", "UnitV1")]
public class GeminiAgentTests
{
private readonly Functions functions = new Functions();
diff --git a/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs b/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs
index 6e513375c..48074596e 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs
@@ -9,6 +9,7 @@ using Xunit;
namespace AutoGen.Gemini.Tests;
+[Trait("Category", "UnitV1")]
public class GeminiMessageTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs b/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs
index 37b274a8a..4a651ce8f 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs
@@ -5,10 +5,12 @@ using AutoGen.Tests;
using FluentAssertions;
using Google.Cloud.AIPlatform.V1;
using Google.Protobuf;
+using Xunit;
using static Google.Cloud.AIPlatform.V1.Candidate.Types;
namespace AutoGen.Gemini.Tests;
+[Trait("Category", "UnitV1")]
public class GoogleGeminiClientTests
{
[ApiKeyFact("GOOGLE_GEMINI_API_KEY")]
diff --git a/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs b/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs
index 3cd2c438b..8a354b0a7 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs
@@ -3,9 +3,11 @@
using AutoGen.Gemini.Sample;
using AutoGen.Tests;
+using Xunit;
namespace AutoGen.Gemini.Tests;
+[Trait("Category", "UnitV1")]
public class SampleTests
{
[ApiKeyFact("GCP_VERTEX_PROJECT_ID")]
diff --git a/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs b/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs
index 00e551d1a..68b5b69b1 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs
@@ -5,9 +5,11 @@ using AutoGen.Tests;
using FluentAssertions;
using Google.Cloud.AIPlatform.V1;
using Google.Protobuf;
+using Xunit;
using static Google.Cloud.AIPlatform.V1.Candidate.Types;
namespace AutoGen.Gemini.Tests;
+[Trait("Category", "UnitV1")]
public class VertexGeminiClientTests
{
[ApiKeyFact("GCP_VERTEX_PROJECT_ID")]
diff --git a/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs b/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs
index 26715b2c9..46cc07689 100644
--- a/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs
+++ b/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs
@@ -6,10 +6,12 @@ using AutoGen.Core;
using AutoGen.Mistral.Extension;
using AutoGen.Tests;
using FluentAssertions;
+using Xunit;
using Xunit.Abstractions;
namespace AutoGen.Mistral.Tests;
+[Trait("Category", "UnitV1")]
public partial class MistralClientAgentTests
{
private ITestOutputHelper _output;
diff --git a/dotnet/test/AutoGen.Mistral.Tests/MistralClientTests.cs b/dotnet/test/AutoGen.Mistral.Tests/MistralClientTests.cs
index 50756d5fc..f442776cb 100644
--- a/dotnet/test/AutoGen.Mistral.Tests/MistralClientTests.cs
+++ b/dotnet/test/AutoGen.Mistral.Tests/MistralClientTests.cs
@@ -7,9 +7,11 @@ using AutoGen.Core;
using AutoGen.Mistral.Extension;
using AutoGen.Tests;
using FluentAssertions;
+using Xunit;
namespace AutoGen.Mistral.Tests;
+[Trait("Category", "UnitV1")]
public partial class MistralClientTests
{
[Function]
diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs
index 73d2b9d28..e6defd411 100644
--- a/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs
+++ b/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs
@@ -6,9 +6,11 @@ using AutoGen.Core;
using AutoGen.Ollama.Extension;
using AutoGen.Tests;
using FluentAssertions;
+using Xunit;
namespace AutoGen.Ollama.Tests;
+[Trait("Category", "UnitV1")]
public class OllamaAgentTests
{
[ApiKeyFact("OLLAMA_HOST", "OLLAMA_MODEL_NAME")]
diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs
index 3a34a108d..e30943ee5 100644
--- a/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs
+++ b/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs
@@ -7,6 +7,7 @@ using FluentAssertions;
using Xunit;
namespace AutoGen.Ollama.Tests;
+[Trait("Category", "UnitV1")]
public class OllamaMessageTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs
index 06522bdd8..bbe7ec1de 100644
--- a/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs
+++ b/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs
@@ -3,9 +3,11 @@
using AutoGen.Tests;
using FluentAssertions;
+using Xunit;
namespace AutoGen.Ollama.Tests;
+[Trait("Category", "UnitV1")]
public class OllamaTextEmbeddingServiceTests
{
[ApiKeyFact("OLLAMA_HOST", "OLLAMA_EMBEDDING_MODEL_NAME")]
diff --git a/dotnet/test/AutoGen.OpenAI.Tests/MathClassTest.cs b/dotnet/test/AutoGen.OpenAI.Tests/MathClassTest.cs
index 3f255aeb3..e8a85213c 100644
--- a/dotnet/test/AutoGen.OpenAI.Tests/MathClassTest.cs
+++ b/dotnet/test/AutoGen.OpenAI.Tests/MathClassTest.cs
@@ -12,10 +12,12 @@ using AutoGen.Tests;
using Azure.AI.OpenAI;
using FluentAssertions;
using OpenAI;
+using Xunit;
using Xunit.Abstractions;
namespace AutoGen.OpenAI.Tests;
+[Trait("Category", "UnitV1")]
public partial class MathClassTest
{
private readonly ITestOutputHelper _output;
diff --git a/dotnet/test/AutoGen.OpenAI.Tests/OpenAIChatAgentTest.cs b/dotnet/test/AutoGen.OpenAI.Tests/OpenAIChatAgentTest.cs
index f3d51f2ff..e68c89383 100644
--- a/dotnet/test/AutoGen.OpenAI.Tests/OpenAIChatAgentTest.cs
+++ b/dotnet/test/AutoGen.OpenAI.Tests/OpenAIChatAgentTest.cs
@@ -12,9 +12,11 @@ using Azure.AI.OpenAI;
using FluentAssertions;
using OpenAI;
using OpenAI.Chat;
+using Xunit;
namespace AutoGen.OpenAI.Tests;
+[Trait("Category", "UnitV1")]
public partial class OpenAIChatAgentTest
{
/// <summary>
diff --git a/dotnet/test/AutoGen.OpenAI.Tests/OpenAIMessageTests.cs b/dotnet/test/AutoGen.OpenAI.Tests/OpenAIMessageTests.cs
index 9fa6b5787..b5aa5e78f 100644
--- a/dotnet/test/AutoGen.OpenAI.Tests/OpenAIMessageTests.cs
+++ b/dotnet/test/AutoGen.OpenAI.Tests/OpenAIMessageTests.cs
@@ -17,6 +17,7 @@ using Xunit;
namespace AutoGen.OpenAI.Tests;
+[Trait("Category", "UnitV1")]
public class OpenAIMessageTests
{
private readonly JsonSerializerOptions jsonSerializerOptions = new JsonSerializerOptions
diff --git a/dotnet/test/AutoGen.OpenAI.Tests/OpenAISampleTest.cs b/dotnet/test/AutoGen.OpenAI.Tests/OpenAISampleTest.cs
index 2d82ad8b8..6907c3dfe 100644
--- a/dotnet/test/AutoGen.OpenAI.Tests/OpenAISampleTest.cs
+++ b/dotnet/test/AutoGen.OpenAI.Tests/OpenAISampleTest.cs
@@ -6,10 +6,12 @@ using System.IO;
using System.Threading.Tasks;
using AutoGen.OpenAI.Sample;
using AutoGen.Tests;
+using Xunit;
using Xunit.Abstractions;
namespace AutoGen.OpenAI.Tests;
+[Trait("Category", "UnitV1")]
public class OpenAISampleTest
{
private readonly ITestOutputHelper _output;
diff --git a/dotnet/test/AutoGen.OpenAI.Tests/RolePlayToolCallOrchestratorTests.cs b/dotnet/test/AutoGen.OpenAI.Tests/RolePlayToolCallOrchestratorTests.cs
index 807bf41e9..f4ecbc7ea 100644
--- a/dotnet/test/AutoGen.OpenAI.Tests/RolePlayToolCallOrchestratorTests.cs
+++ b/dotnet/test/AutoGen.OpenAI.Tests/RolePlayToolCallOrchestratorTests.cs
@@ -15,6 +15,7 @@ using Xunit;
namespace AutoGen.OpenAI.Tests;
+[Trait("Category", "UnitV1")]
public class RolePlayToolCallOrchestratorTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/GPTAgentTest.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/GPTAgentTest.cs
index 8137f55ae..36a9de1ed 100644
--- a/dotnet/test/AutoGen.OpenAI.V1.Tests/GPTAgentTest.cs
+++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/GPTAgentTest.cs
@@ -10,10 +10,12 @@ using AutoGen.OpenAI.V1.Extension;
using AutoGen.Tests;
using Azure.AI.OpenAI;
using FluentAssertions;
+using Xunit;
using Xunit.Abstractions;
namespace AutoGen.OpenAI.V1.Tests;
+[Trait("Category", "UnitV1")]
public partial class GPTAgentTest
{
private ITestOutputHelper _output;
diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/MathClassTest.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/MathClassTest.cs
index 0508d3dbe..e0b427440 100644
--- a/dotnet/test/AutoGen.OpenAI.V1.Tests/MathClassTest.cs
+++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/MathClassTest.cs
@@ -11,10 +11,12 @@ using AutoGen.OpenAI.V1.Extension;
using AutoGen.Tests;
using Azure.AI.OpenAI;
using FluentAssertions;
+using Xunit;
using Xunit.Abstractions;
namespace AutoGen.OpenAI.V1.Tests;
+[Trait("Category", "UnitV1")]
public partial class MathClassTest
{
private readonly ITestOutputHelper _output;
diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIChatAgentTest.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIChatAgentTest.cs
index e9a183d22..275e1bcd6 100644
--- a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIChatAgentTest.cs
+++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIChatAgentTest.cs
@@ -9,9 +9,11 @@ using AutoGen.OpenAI.V1.Extension;
using AutoGen.Tests;
using Azure.AI.OpenAI;
using FluentAssertions;
+using Xunit;
namespace AutoGen.OpenAI.V1.Tests;
+[Trait("Category", "UnitV1")]
public partial class OpenAIChatAgentTest
{
/// <summary>
diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs
index 276829d99..b4f7c4e02 100644
--- a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs
+++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs
@@ -17,6 +17,7 @@ using Xunit;
namespace AutoGen.OpenAI.V1.Tests;
+[Trait("Category", "UnitV1")]
public class OpenAIMessageTests
{
private readonly JsonSerializerOptions jsonSerializerOptions = new JsonSerializerOptions
diff --git a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionExtensionTests.cs b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionExtensionTests.cs
index 9b97a194e..00a484f59 100644
--- a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionExtensionTests.cs
+++ b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionExtensionTests.cs
@@ -13,6 +13,7 @@ using Xunit;
namespace AutoGen.SemanticKernel.Tests;
+[Trait("Category", "UnitV1")]
public class TestPlugin
{
public bool IsOn { get; set; }
diff --git a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs
index bc00bb228..c29777b7d 100644
--- a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs
+++ b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs
@@ -9,9 +9,11 @@ using AutoGen.Tests;
using Azure.AI.OpenAI;
using FluentAssertions;
using Microsoft.SemanticKernel;
+using Xunit;
namespace AutoGen.SemanticKernel.Tests;
+[Trait("Category", "UnitV1")]
public class KernelFunctionMiddlewareTests
{
[ApiKeyFact("AZURE_OPENAI_API_KEY", "AZURE_OPENAI_ENDPOINT", "AZURE_OPENAI_DEPLOY_NAME")]
diff --git a/dotnet/test/AutoGen.SemanticKernel.Tests/SemanticKernelAgentTest.cs b/dotnet/test/AutoGen.SemanticKernel.Tests/SemanticKernelAgentTest.cs
index 93bc8bb11..cb7d83ed8 100644
--- a/dotnet/test/AutoGen.SemanticKernel.Tests/SemanticKernelAgentTest.cs
+++ b/dotnet/test/AutoGen.SemanticKernel.Tests/SemanticKernelAgentTest.cs
@@ -9,9 +9,11 @@ using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Agents;
using Microsoft.SemanticKernel.ChatCompletion;
using Microsoft.SemanticKernel.Connectors.OpenAI;
+using Xunit;
namespace AutoGen.SemanticKernel.Tests;
+[Trait("Category", "UnitV1")]
public partial class SemanticKernelAgentTest
{
/// <summary>
diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateEncodingTests.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateEncodingTests.cs
index f54271844..0ce79cae3 100644
--- a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateEncodingTests.cs
+++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateEncodingTests.cs
@@ -6,6 +6,7 @@ using Xunit; // Needed for Fact and Assert
namespace AutoGen.SourceGenerator.Tests;
+[Trait("Category", "UnitV1")]
public class FunctionCallTemplateEncodingTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs
index df89b08b9..1bd52b381 100644
--- a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs
+++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs
@@ -9,6 +9,7 @@ using Xunit;
namespace AutoGen.SourceGenerator.Tests;
+[Trait("Category", "UnitV1")]
public class FunctionCallTemplateTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs
index fd2281e71..715b66582 100644
--- a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs
+++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs
@@ -12,6 +12,7 @@ using Xunit;
namespace AutoGen.SourceGenerator.Tests;
+[Trait("Category", "UnitV1")]
public class FunctionExample
{
private readonly FunctionExamples functionExamples = new FunctionExamples();
diff --git a/dotnet/test/AutoGen.Tests/BasicSampleTest.cs b/dotnet/test/AutoGen.Tests/BasicSampleTest.cs
index 8c51a1c6b..49a5f9fbe 100644
--- a/dotnet/test/AutoGen.Tests/BasicSampleTest.cs
+++ b/dotnet/test/AutoGen.Tests/BasicSampleTest.cs
@@ -5,10 +5,12 @@ using System;
using System.IO;
using System.Threading.Tasks;
using AutoGen.Basic.Sample;
+using Xunit;
using Xunit.Abstractions;
namespace AutoGen.Tests;
+[Trait("Category", "UnitV1")]
public class BasicSampleTest
{
private readonly ITestOutputHelper _output;
diff --git a/dotnet/test/AutoGen.Tests/Function/FunctionTests.cs b/dotnet/test/AutoGen.Tests/Function/FunctionTests.cs
index 64abb293b..adb97e1c5 100644
--- a/dotnet/test/AutoGen.Tests/Function/FunctionTests.cs
+++ b/dotnet/test/AutoGen.Tests/Function/FunctionTests.cs
@@ -16,6 +16,8 @@ using Microsoft.Extensions.AI;
using Xunit;
namespace AutoGen.Tests.Function;
+
+[Trait("Category", "UnitV1")]
public class FunctionTests
{
private readonly JsonSerializerOptions _jsonSerializerOptions = new() { WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull };
diff --git a/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs b/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs
index 6698e42ab..e75d5824a 100644
--- a/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs
+++ b/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs
@@ -5,6 +5,7 @@ using Xunit;
namespace AutoGen.Tests;
+[Trait("Category", "UnitV1")]
public class GraphTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.Tests/GroupChat/GroupChatTests.cs b/dotnet/test/AutoGen.Tests/GroupChat/GroupChatTests.cs
index 234c137b8..9b1e78503 100644
--- a/dotnet/test/AutoGen.Tests/GroupChat/GroupChatTests.cs
+++ b/dotnet/test/AutoGen.Tests/GroupChat/GroupChatTests.cs
@@ -12,6 +12,7 @@ using Xunit;
namespace AutoGen.Tests;
+[Trait("Category", "UnitV1")]
public class GroupChatTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.Tests/ImageMessageTests.cs b/dotnet/test/AutoGen.Tests/ImageMessageTests.cs
index bb256a170..ec1471a91 100644
--- a/dotnet/test/AutoGen.Tests/ImageMessageTests.cs
+++ b/dotnet/test/AutoGen.Tests/ImageMessageTests.cs
@@ -9,6 +9,7 @@ using Xunit;
namespace AutoGen.Tests;
+[Trait("Category", "UnitV1")]
public class ImageMessageTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs b/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs
index f0475643f..30b620e52 100644
--- a/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs
+++ b/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs
@@ -8,6 +8,7 @@ using Xunit;
namespace AutoGen.Tests;
+[Trait("Category", "UnitV1")]
public class MiddlewareAgentTest
{
[Fact]
diff --git a/dotnet/test/AutoGen.Tests/MiddlewareTest.cs b/dotnet/test/AutoGen.Tests/MiddlewareTest.cs
index 61691b225..564406ec7 100644
--- a/dotnet/test/AutoGen.Tests/MiddlewareTest.cs
+++ b/dotnet/test/AutoGen.Tests/MiddlewareTest.cs
@@ -12,6 +12,7 @@ using Xunit;
namespace AutoGen.Tests;
+[Trait("Category", "UnitV1")]
public partial class MiddlewareTest
{
[Function]
diff --git a/dotnet/test/AutoGen.Tests/Orchestrator/RolePlayOrchestratorTests.cs b/dotnet/test/AutoGen.Tests/Orchestrator/RolePlayOrchestratorTests.cs
index cf9dd6463..256d704cc 100644
--- a/dotnet/test/AutoGen.Tests/Orchestrator/RolePlayOrchestratorTests.cs
+++ b/dotnet/test/AutoGen.Tests/Orchestrator/RolePlayOrchestratorTests.cs
@@ -26,6 +26,7 @@ using Xunit;
namespace AutoGen.Tests;
+[Trait("Category", "UnitV1")]
public class RolePlayOrchestratorTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs b/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs
index da6feda11..793b7e239 100644
--- a/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs
+++ b/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs
@@ -9,6 +9,7 @@ using Xunit;
namespace AutoGen.Tests;
+[Trait("Category", "UnitV1")]
public class RoundRobinOrchestratorTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs b/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs
index 3253a161b..5b38496bf 100644
--- a/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs
+++ b/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs
@@ -10,6 +10,7 @@ using Xunit;
namespace AutoGen.Tests;
+[Trait("Category", "UnitV1")]
public class WorkflowOrchestratorTests
{
[Fact]
diff --git a/dotnet/test/AutoGen.Tests/SingleAgentTest.cs b/dotnet/test/AutoGen.Tests/SingleAgentTest.cs
index 9b527d83d..8611714c3 100644
--- a/dotnet/test/AutoGen.Tests/SingleAgentTest.cs
+++ b/dotnet/test/AutoGen.Tests/SingleAgentTest.cs
@@ -11,6 +11,7 @@ using Xunit.Abstractions;
namespace AutoGen.Tests;
+[Trait("Category", "UnitV1")]
public partial class SingleAgentTest
{
private ITestOutputHelper _output;
diff --git a/dotnet/test/AutoGen.Tests/TwoAgentTest.cs b/dotnet/test/AutoGen.Tests/TwoAgentTest.cs
index 5537506d3..8ba4a3fed 100644
--- a/dotnet/test/AutoGen.Tests/TwoAgentTest.cs
+++ b/dotnet/test/AutoGen.Tests/TwoAgentTest.cs
@@ -7,10 +7,12 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FluentAssertions;
+using Xunit;
using Xunit.Abstractions;
namespace AutoGen.Tests;
+[Trait("Category", "UnitV1")]
public partial class TwoAgentTest
{
private ITestOutputHelper _output;
diff --git a/dotnet/test/AutoGen.Tests/WorkflowTest.cs b/dotnet/test/AutoGen.Tests/WorkflowTest.cs
index 265510cf1..f3c5d129f 100644
--- a/dotnet/test/AutoGen.Tests/WorkflowTest.cs
+++ b/dotnet/test/AutoGen.Tests/WorkflowTest.cs
@@ -9,6 +9,7 @@ using Xunit;
namespace AutoGen.Tests;
+[Trait("Category", "UnitV1")]
public class WorkflowTest
{
[Fact]
diff --git a/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs b/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs
index 4b7d93334..4349b6cc1 100644
--- a/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs
+++ b/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs
@@ -15,6 +15,7 @@ using OpenAI;
namespace AutoGen.WebAPI.Tests;
+[Trait("Category", "UnitV1")]
public class OpenAIChatCompletionMiddlewareTests
{
[Fact]
diff --git a/dotnet/test/Microsoft.AutoGen.Core.Grpc.Tests/AgentGrpcTests.cs b/dotnet/test/Microsoft.AutoGen.Core.Grpc.Tests/AgentGrpcTests.cs
index f9f1341e8..7514609e1 100644
--- a/dotnet/test/Microsoft.AutoGen.Core.Grpc.Tests/AgentGrpcTests.cs
+++ b/dotnet/test/Microsoft.AutoGen.Core.Grpc.Tests/AgentGrpcTests.cs
@@ -14,6 +14,7 @@ using static Microsoft.AutoGen.Core.Grpc.Tests.AgentGrpcTests;
namespace Microsoft.AutoGen.Core.Grpc.Tests;
+[Trait("Category", "UnitV2")]
public class AgentGrpcTests
{
/// <summary>
diff --git a/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentIdTests.cs b/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentIdTests.cs
index 974e9334a..69b8c9582 100644
--- a/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentIdTests.cs
+++ b/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentIdTests.cs
@@ -6,6 +6,7 @@ using Xunit;
namespace Microsoft.AutoGen.Core.Tests;
+[Trait("Category", "UnitV2")]
public class AgentIdTests()
{
[Fact]
diff --git a/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentMetaDataTests.cs b/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentMetaDataTests.cs
index c4f0b7b0e..2e0f64fd2 100644
--- a/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentMetaDataTests.cs
+++ b/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentMetaDataTests.cs
@@ -6,6 +6,7 @@ using Xunit;
namespace Microsoft.AutoGen.Core.Tests;
+[Trait("Category", "UnitV2")]
public class AgentMetadataTests()
{
[Fact]
diff --git a/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentTests.cs b/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentTests.cs
index e8cd894f7..cc39b3564 100644
--- a/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentTests.cs
+++ b/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentTests.cs
@@ -7,6 +7,7 @@ using Xunit;
namespace Microsoft.AutoGen.Core.Tests;
+[Trait("Category", "UnitV2")]
public class AgentTests()
{
[Fact]
diff --git a/dotnet/test/Microsoft.AutoGen.Core.Tests/HandlerInvokerTest.cs b/dotnet/test/Microsoft.AutoGen.Core.Tests/HandlerInvokerTest.cs
index 7387366b5..bc6b1734d 100644
--- a/dotnet/test/Microsoft.AutoGen.Core.Tests/HandlerInvokerTest.cs
+++ b/dotnet/test/Microsoft.AutoGen.Core.Tests/HandlerInvokerTest.cs
@@ -7,6 +7,7 @@ using Xunit;
namespace Microsoft.AutoGen.Core.Tests;
+[Trait("Category", "UnitV2")]
public class HandlerInvokerTest()
{
public List<(string, MessageContext)> PublishlikeInvocations = new List<(string, MessageContext)>();
diff --git a/dotnet/test/Microsoft.AutoGen.Integration.Tests/HelloAppHostIntegrationTests.cs b/dotnet/test/Microsoft.AutoGen.Integration.Tests/HelloAppHostIntegrationTests.cs
index ba83b07f7..e612eb5b8 100644
--- a/dotnet/test/Microsoft.AutoGen.Integration.Tests/HelloAppHostIntegrationTests.cs
+++ b/dotnet/test/Microsoft.AutoGen.Integration.Tests/HelloAppHostIntegrationTests.cs
@@ -8,7 +8,7 @@ namespace Microsoft.AutoGen.Integration.Tests;
public class HelloAppHostIntegrationTests(ITestOutputHelper testOutput)
{
- [Theory, Trait("type", "integration")]
+ [Theory, Trait("Category", "Integration")]
[MemberData(nameof(AppHostAssemblies))]
public async Task AppHostRunsCleanly(string appHostPath)
{
@@ -22,7 +22,7 @@ public class HelloAppHostIntegrationTests(ITestOutputHelper testOutput)
await app.StopAsync().WaitAsync(TimeSpan.FromSeconds(15));
}
- [Theory, Trait("type", "integration")]
+ [Theory, Trait("Category", "Integration")]
[MemberData(nameof(TestEndpoints))]
public async Task AppHostLogsHelloAgentE2E(TestEndpoints testEndpoints)
{
diff --git a/dotnet/test/Microsoft.AutoGen.Integration.Tests/InMemoryRuntimeIntegrationTests.cs b/dotnet/test/Microsoft.AutoGen.Integration.Tests/InMemoryRuntimeIntegrationTests.cs
index b6bdd9eb7..ee972a67e 100644
--- a/dotnet/test/Microsoft.AutoGen.Integration.Tests/InMemoryRuntimeIntegrationTests.cs
+++ b/dotnet/test/Microsoft.AutoGen.Integration.Tests/InMemoryRuntimeIntegrationTests.cs
@@ -7,7 +7,7 @@ namespace Microsoft.AutoGen.Integration.Tests;
public class InMemoryRuntimeIntegrationTests(ITestOutputHelper testOutput)
{
- [Theory, Trait("type", "integration")]
+ [Theory, Trait("Category", "Integration")]
[MemberData(nameof(AppHostAssemblies))]
public async Task HelloAgentsE2EInMemory(string appHostAssemblyPath)
{
diff --git a/dotnet/test/Microsoft.AutoGen.Runtime.Grpc.Tests/GrpcGatewayServiceTests.cs b/dotnet/test/Microsoft.AutoGen.Runtime.Grpc.Tests/GrpcGatewayServiceTests.cs
index 89f17f2fe..90b6b2ddd 100644
--- a/dotnet/test/Microsoft.AutoGen.Runtime.Grpc.Tests/GrpcGatewayServiceTests.cs
+++ b/dotnet/test/Microsoft.AutoGen.Runtime.Grpc.Tests/GrpcGatewayServiceTests.cs
@@ -12,6 +12,7 @@ using NewMessageReceived = Tests.Events.NewMessageReceived;
namespace Microsoft.AutoGen.Runtime.Grpc.Tests;
[Collection(ClusterCollection.Name)]
+[Trait("Category", "UnitV2")]
public class GrpcGatewayServiceTests
{
private readonly ClusterFixture _fixture;