Precept.TestPlatform 0.14.0

dotnet add package Precept.TestPlatform --version 0.14.0
                    
NuGet\Install-Package Precept.TestPlatform -Version 0.14.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Precept.TestPlatform" Version="0.14.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Precept.TestPlatform" Version="0.14.0" />
                    
Directory.Packages.props
<PackageReference Include="Precept.TestPlatform" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Precept.TestPlatform --version 0.14.0
                    
#r "nuget: Precept.TestPlatform, 0.14.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Precept.TestPlatform@0.14.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Precept.TestPlatform&version=0.14.0
                    
Install as a Cake Addin
#tool nuget:?package=Precept.TestPlatform&version=0.14.0
                    
Install as a Cake Tool

Precept.TestPlatform

Precept is a test framework for .NET 10, built on Microsoft.Testing.Platform (MTP). This package is its test runner: it implements MTP's ITestFramework, so Precept controls how tests are discovered, scheduled, retried and reported, while the platform runs them under dotnet test, dotnet run, IDE test explorers and TRX reporting.

A test project starts here. This package brings in Precept.Core, makes the project an executable and generates its entry point. There is no Main and no OutputType to write.

dotnet add package Precept.TestPlatform
[TestSuite("Checkout")]
public class CheckoutTests
{
    [Test("A customer can check out")]
    [Retry(2, DelayMilliseconds = 200)]
    public async Task Checkout()
    {
        var response = await Rest.Post("/orders")
            .WithJsonBody(new { sku = "ABC", quantity = 2 })
            .SendAsync();

        await Assert.That(response).ToHaveStatusAsync(HttpStatusCode.Created);
    }
}

The first build writes a commented precept.json into the project. That file, its precept.{environment}.json overlays and PRECEPT_* environment variables configure the run.

On the .NET 10 SDK, dotnet test has to be told to use Microsoft.Testing.Platform. Put this global.json at the repository root. The SDK reads it from the directory you run dotnet test in and upward, not from the project's directory:

{
  "test": {
    "runner": "Microsoft.Testing.Platform"
  }
}

Without it dotnet test fails with "Testing with VSTest target is no longer supported". Running the test binary directly with dotnet run -- --list-tests works either way.


Part of Precept, a .NET 10 test framework built on Microsoft.Testing.Platform. Full documentation: installing · writing tests · running a suite · execution model · filtering · configuration

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.14.0 55 11/11/2026
0.13.0 116 10/26/2026
0.13.0-rc.2 73 10/15/2026
0.13.0-rc.1 66 10/5/2026
0.12.1 121 10/21/2026
0.12.0 161 9/19/2026
0.11.1 116 9/16/2026
0.11.0 113 9/15/2026
0.10.0 129 9/10/2026
0.8.0 238 9/10/2026
0.7.0 142 9/9/2026
0.6.0 136 9/2/2026
0.5.1 128 9/2/2026
0.5.0 125 9/1/2026
0.4.1 143 8/16/2026
0.4.0 143 8/16/2026
0.3.0 129 8/15/2026
0.2.0 130 8/15/2026
0.1.3 125 8/13/2026
Loading failed