Precept 0.10.0

Precept.Templates

dotnet new templates for Precept test projects, with and without Reqnroll — so a suite starts with environment switching, precept.json overlays and a first test already wired.

dotnet new install Precept.Templates
# Plain C# tests + Precept.Web
dotnet new precept-web -n Checkout.Web.Tests

# Reqnroll feature tests + Precept.Web
dotnet new precept-web-reqnroll -n Checkout.Web.Reqnroll.Tests

Each template includes:

  • global.json set to Microsoft.Testing.Platform, which dotnet test requires on the .NET 10 SDK. Inside a larger repository, move its test section to the root global.json — the SDK reads the file from where dotnet test is run, not from the project.
  • precept.json with Environment: local and web defaults.
  • precept.staging.json as an overlay for staging, reached with --precept-environment staging.
  • A starter test — plain C#, or a .feature file with its step definitions.

Build configurations are left as the SDK defines them, with nothing bound to PreceptEnvironment — how an environment is chosen is yours to decide.

Precept.Web uses Playwright, so install a browser once in the new project:

pwsh bin/Debug/net10.0/playwright.ps1 install chromium

Part of Precept, a .NET 10 test automation framework. Full documentation: project templates · environments · installing browsers

Precept 0.10.0 · MIT · © 2026

Esc