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.jsonset toMicrosoft.Testing.Platform, whichdotnet testrequires on the .NET 10 SDK. Inside a larger repository, move itstestsection to the rootglobal.json— the SDK reads the file from wheredotnet testis run, not from the project.precept.jsonwithEnvironment: localand web defaults.precept.staging.jsonas an overlay forstaging, reached with--precept-environment staging.- A starter test — plain C#, or a
.featurefile 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