Precept.TestData
0.1.2
See the version list below for details.
dotnet add package Precept.TestData --version 0.1.2
NuGet\Install-Package Precept.TestData -Version 0.1.2
<PackageReference Include="Precept.TestData" Version="0.1.2" />
<PackageVersion Include="Precept.TestData" Version="0.1.2" />
<PackageReference Include="Precept.TestData" />
paket add Precept.TestData --version 0.1.2
#r "nuget: Precept.TestData, 0.1.2"
#:package Precept.TestData@0.1.2
#addin nuget:?package=Precept.TestData&version=0.1.2
#tool nuget:?package=Precept.TestData&version=0.1.2
Precept.TestData
Test data management for Precept: environment-specific data sets for the users, clients, vehicles and anything else a suite needs, dynamic value generation, factories that create and clean up data in the system under test, and pooled records leased exclusively to parallel tests.
dotnet add package Precept.TestData
services.AddPreceptTestData();
// testdata.json, beside the test binary
{
"users": {
"admin": { "username": "admin@acme.test", "password": "{{env:ADMIN_PASSWORD}}" }
},
"clients": {
"new": { "name": "Acme {{unique}}", "email": "acme-{{unique}}@acme.test" }
}
}
var admin = TestData.Get<TestUser>("admin");
var password = TestData.Value("users:admin:password");
testdata.json is overlaid by testdata.{environment}.json and then by PRECEPT_TESTDATA__*
environment variables — which is how a password reaches a run without being written down in the
repository.
{{unique}}, {{guid}}, {{now:+2d}}, {{random:1000-9999}} and friends are expanded when a value
is read, so a suite that inserts the same email address on every run stops failing on the second
one. Within a scenario the values are stable, so every step sees what the first one created; a retry
generates fresh ones, so a test that failed on a duplicate key stops colliding with itself.
The module's types live in the root Precept namespace, so a step definition needs no further using.
Part of Precept, a .NET 10 test automation framework. Full documentation: test data · dynamic values · factories · pooled data
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.0)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.0)
- Microsoft.Extensions.Configuration.Json (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
- Precept.Core (>= 0.1.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.10.0 | 53 | 9/10/2026 |
| 0.8.0 | 64 | 9/10/2026 |
| 0.7.0 | 79 | 9/9/2026 |
| 0.6.0 | 97 | 9/2/2026 |
| 0.5.1 | 93 | 9/2/2026 |
| 0.5.0 | 89 | 9/1/2026 |
| 0.4.1 | 120 | 8/16/2026 |
| 0.4.0 | 112 | 8/16/2026 |
| 0.3.0 | 107 | 8/15/2026 |
| 0.2.0 | 111 | 8/15/2026 |
| 0.1.3 | 107 | 8/13/2026 |
| 0.1.2 | 115 | 8/13/2026 |
| 0.1.1 | 105 | 8/13/2026 |
| 0.1.0 | 108 | 8/12/2026 |