Skip to content

Commit

Permalink
[tests] Addressing review feedback for Aspire.Playground.Tests (#5243)
Browse files Browse the repository at this point in the history
.. from @ eerhardt .

Follow up for #5208 .
  • Loading branch information
radical authored Aug 9, 2024
1 parent ea10ec2 commit 3aa35bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion playground/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- Import only when in-repo. For the out-of-repo case a parent Directory.Build.targets does the import -->
<Import Project="$(TestsSharedRepoTestingDir)Aspire.RepoTesting.targets" Condition="'$(RepoRoot)' != ''" />

<PropertyGroup Condition="'$(TestsRunningOutsideOfRepo)' == 'true' or '$(SkipDashboardProjectReference)' == 'true'">
<PropertyGroup Condition="'$(SkipDashboardProjectReference)' == 'true'">
<DefineConstants>SKIP_DASHBOARD_REFERENCE;$(DefineConstants)</DefineConstants>
</PropertyGroup>
</Project>
5 changes: 2 additions & 3 deletions tests/Aspire.Playground.Tests/AppHostTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Net;
using System.Text.Json;
using Aspire.Hosting.ApplicationModel;
using Aspire.Workload.Tests;
using Microsoft.Extensions.DependencyInjection;
using SamplesIntegrationTests;
using SamplesIntegrationTests.Infrastructure;
Expand All @@ -15,12 +14,12 @@ namespace Aspire.Playground.Tests;

public class AppHostTests
{
private readonly TestOutputWrapper _testOutput;
private readonly ITestOutputHelper _testOutput;
private static readonly string? s_appHostNameFilter = Environment.GetEnvironmentVariable("TEST_PLAYGROUND_APPHOST_FILTER");

public AppHostTests(ITestOutputHelper testOutput)
{
this._testOutput = new TestOutputWrapper(testOutput);
_testOutput = testOutput;
}

[Theory]
Expand Down
4 changes: 2 additions & 2 deletions tests/Aspire.Playground.Tests/Aspire.Playground.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
</PropertyGroup>

<ItemGroup>
<!-- on helix, the file will be in the source directory, so it will get
picked up by msbuild by default -->
<Compile Condition="'$(RepoRoot)' != ''" Include="$(RepoRoot)src\Aspire.Hosting\Utils\PasswordGenerator.cs" />
<Compile Include="$(TestsSharedDir)WorkloadTesting\TestOutputWrapper.cs" />
<Compile Include="$(TestsSharedDir)WorkloadTesting\EnvironmentVariables.cs" />
<Compile Include="$(TestsSharedDir)Logging\*.cs" />

<AspireProjectOrPackageReference Include="Aspire.Hosting" />
Expand Down

0 comments on commit 3aa35bc

Please sign in to comment.