Soenneker.Utils.Test
11.0.347
Prefix Reserved
dotnet add package Soenneker.Utils.Test --version 11.0.347
NuGet\Install-Package Soenneker.Utils.Test -Version 11.0.347
<PackageReference Include="Soenneker.Utils.Test" Version="11.0.347" />
<PackageVersion Include="Soenneker.Utils.Test" Version="11.0.347" />
<PackageReference Include="Soenneker.Utils.Test" />
paket add Soenneker.Utils.Test --version 11.0.347
#r "nuget: Soenneker.Utils.Test, 11.0.347"
#:package Soenneker.Utils.Test@11.0.347
#addin nuget:?package=Soenneker.Utils.Test&version=11.0.347
#tool nuget:?package=Soenneker.Utils.Test&version=11.0.347
Soenneker.Utils.Test
A small test helper for building JSON configuration relative to the test process's working directory.
Installation
dotnet add package Soenneker.Utils.Test
Basic usage
using Soenneker.Utils.Test;
IConfiguration configuration = TestUtil.BuildConfig();
This requires appsettings.json in Directory.GetCurrentDirectory(). The file is loaded once; change monitoring is disabled.
Child directories and custom files
IConfiguration configuration = TestUtil.BuildConfig(
childPath: "Fixtures",
fileName: "integration-settings.json");
That reads:
<current working directory>/Fixtures/integration-settings.json
The base file is required. Missing files and malformed JSON propagate configuration-provider exceptions to the caller.
Environment overlay
IConfiguration configuration = TestUtil.BuildConfig(
environmentName: "Development");
The helper first loads the required base file, then optionally loads appsettings.Development.json from the same directory. The environment file is optional and its values override the base configuration.
The overlay name is always appsettings.{environmentName}.json. Supplying a custom base filename does not change that convention.
Call TestUtil.BuildConfig directly; no dependency-injection registration is required. Because resolution starts from Directory.GetCurrentDirectory(), ensure your test runner copies settings files to its working directory or pass the appropriate child path.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Microsoft.Extensions.Configuration.Json (>= 11.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Utils.Test:
| Package | Downloads |
|---|---|
|
Soenneker.Playwrights.TestHosts
A test host for automated testing with Playwright |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.347 | 11,362 | 11/11/2026 |
| 11.0.346 | 8,707 | 11/10/2026 |
| 11.0.345 | 43,830 | 10/27/2026 |
| 11.0.344 | 5,436 | 10/26/2026 |
| 11.0.343 | 5,304 | 10/26/2026 |
| 4.0.342 | 14,394 | 10/25/2026 |
| 4.0.341 | 17,441 | 10/14/2026 |
| 4.0.340 | 9,324 | 10/14/2026 |
| 4.0.334 | 8,728 | 10/13/2026 |
| 4.0.332 | 25,906 | 10/11/2026 |
| 4.0.331 | 57,950 | 9/24/2026 |
| 4.0.330 | 31,443 | 9/15/2026 |
| 4.0.329 | 10,977 | 9/14/2026 |
| 4.0.328 | 36,693 | 9/8/2026 |
| 4.0.327 | 80,362 | 8/30/2026 |
| 4.0.326 | 19,603 | 8/29/2026 |
| 4.0.325 | 2,100 | 8/29/2026 |
| 4.0.324 | 63,966 | 8/12/2026 |
| 4.0.323 | 74,517 | 7/28/2026 |
| 4.0.322 | 69,058 | 7/16/2026 |
Upgrade .NET 11 release candidates to stable