autogen/dotnet/test/Microsoft.AutoGen.Integration.Tests/Microsoft.AutoGen.Integration.Tests.csproj
Ryan Sweet 7d01bc6136
adds integration test for the InMemoryRuntime (#4659)
* adds integration test for the InMemoryRuntime

* format

* expand timeout for in memory runtime tests
2024-12-11 12:59:02 -08:00

55 lines
2.1 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Aspire.Hosting.Testing" />
<PackageReference Include="coverlet.collector" />
<PackageReference Include="GitHubActionsTestLogger">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="MartinCostello.Logging.XUnit" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.Testing" />
</ItemGroup>
<ItemGroup>
<Using Include="System.Net" />
<Using Include="Microsoft.Extensions.DependencyInjection" />
<Using Include="Aspire.Hosting.ApplicationModel" />
<Using Include="Aspire.Hosting.Testing" />
<Using Include="Xunit" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\samples\Hello\Hello.AppHost\Hello.AppHost.csproj" />
<ProjectReference Include="..\..\samples\Hello\HelloAgent\HelloAgent.csproj" />
<ProjectReference Include="..\Microsoft.AutoGen.Integration.Tests.AppHosts\HelloAgent.AppHost\HelloAgent.AppHost.csproj" />
</ItemGroup>
<!-- Properties, Items, and targets to ensure Python apps are initialized -->
<PropertyGroup>
<PythonVirtualEnvironmentName>.venv</PythonVirtualEnvironmentName>
<PythonVenvRoot>$(RepoRoot)..\python</PythonVenvRoot>
</PropertyGroup>
<Target Name="CreatePythonVirtualEnvironments" AfterTargets="PrepareForBuild">
<PropertyGroup>
<VenvDir>$(PythonVenvRoot)\$(PythonVirtualEnvironmentName)\</VenvDir>
<CreateVenv Condition="!Exists('$(VenvDir)')">True</CreateVenv>
</PropertyGroup>
<Message Importance="Normal" Text="Initializing virtual environment for $(PythonVenvRoot)" />
<Exec Command="uv sync --all-extras" WorkingDirectory="$(PythonVenvRoot)" Condition=" '$(CreateVenv)' == 'True' " />
</Target>
</Project>