From fd7d0547179ebcc664ea355d0202d91d8ca11cc2 Mon Sep 17 00:00:00 2001 From: Fumika Koyama Date: Thu, 9 Nov 2023 18:44:27 +0900 Subject: [PATCH] =?UTF-8?q?=E9=81=A9=E5=BD=93=E3=81=AA=E7=92=B0=E5=A2=83?= =?UTF-8?q?=E5=A4=89=E6=95=B0=E5=90=8D=E3=81=A7=E5=8B=95=E4=BD=9C=E7=A2=BA?= =?UTF-8?q?=E8=AA=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/samples-dressca-backend.ci.yml | 2 +- .../Dressca.IntegrationTest/CustomWebApplicationFactory.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/samples-dressca-backend.ci.yml b/.github/workflows/samples-dressca-backend.ci.yml index b22cd659f..68130aa84 100644 --- a/.github/workflows/samples-dressca-backend.ci.yml +++ b/.github/workflows/samples-dressca-backend.ci.yml @@ -76,7 +76,7 @@ jobs: name: テストの実行 continue-on-error: true env: - ASPNETCORE_ENVIRONMENT: CI + TEST_ENVIRONMENT: CI run: dotnet test --no-build --logger trx --verbosity normal --configuration ${{ env.BUILD_CONFIGURATION }} --collect "XPlat Code Coverage" - id: create-test-result-report diff --git a/samples/Dressca/dressca-backend/tests/Dressca.IntegrationTest/CustomWebApplicationFactory.cs b/samples/Dressca/dressca-backend/tests/Dressca.IntegrationTest/CustomWebApplicationFactory.cs index 7dfb23e1a..f38860110 100644 --- a/samples/Dressca/dressca-backend/tests/Dressca.IntegrationTest/CustomWebApplicationFactory.cs +++ b/samples/Dressca/dressca-backend/tests/Dressca.IntegrationTest/CustomWebApplicationFactory.cs @@ -9,7 +9,7 @@ public class CustomWebApplicationFactory { protected override void ConfigureWebHost(IWebHostBuilder builder) { - var env = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Development"; + var env = Environment.GetEnvironmentVariable("TEST_ENVIRONMENT") ?? "Development"; //var webhostenv = builder.GetSetting("environment"); //builder.UseEnvironment("Development");