From dc087969c54f233353b71930b678470dea163e14 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Thu, 6 Aug 2026 15:13:20 +0900 Subject: [PATCH] CI: honor PostgreSQL service connection in integration tests --- tests/KArtSell.Integration.Tests/TestDatabaseConnection.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/KArtSell.Integration.Tests/TestDatabaseConnection.cs b/tests/KArtSell.Integration.Tests/TestDatabaseConnection.cs index 14ebc899..d243c162 100644 --- a/tests/KArtSell.Integration.Tests/TestDatabaseConnection.cs +++ b/tests/KArtSell.Integration.Tests/TestDatabaseConnection.cs @@ -6,6 +6,10 @@ internal static class TestDatabaseConnection { public static string GetConnectionString() { + var configured = Environment.GetEnvironmentVariable("KARTSELL_POSTGRES"); + if (!string.IsNullOrWhiteSpace(configured)) + return configured; + var path = Path.Combine(AppContext.BaseDirectory, "appsettings.Development.json"); if (!File.Exists(path)) throw new InvalidOperationException($"Integration test settings are required: {path}");