SimpleTests 0.3.0
dotnet add package SimpleTests --version 0.3.0
NuGet\Install-Package SimpleTests -Version 0.3.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="SimpleTests" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleTests" Version="0.3.0" />
<PackageReference Include="SimpleTests" />
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 SimpleTests --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SimpleTests, 0.3.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 SimpleTests@0.3.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=SimpleTests&version=0.3.0
#tool nuget:?package=SimpleTests&version=0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SimpleTests
A minimal, explicit, type-safe dotnet test framework built on Microsoft.Testing.Platform.
Why SimpleTests?
- No annotations or reflection. Tests are created explicitly as values, so there's no magic discovery step — just standard dotnet code.
- Type-safe data-driven tests. Test cases are generic (
Test.CasesSync<'a>,Test.CasesAsync<'a>), so data and test logic are checked at compile time, unlike annotation-based[InlineData]approaches. - Faster test discovery. No assembly scanning or reflection — tests are registered directly.
- Explicit setup at every level. One-time setup functions can be specified per
TestFolder,TestList, or the entire run, with no convention-based lifecycle to learn. - Explicit hierarchy matching Visual Studio.
TestFoldermaps to a namespace andTestListmaps to a class in Test Explorer, so the tree you define is the tree you see. - Standalone executable. Built on Microsoft.Testing.Platform, each test project runs as its own process with no vstest.console.exe host, giving faster startup and simpler CI orchestration.
- Minimal API surface. Just
Test,TestList,TestFolder,Assert, andRunner.Run.
Assertions
Various assertions, such as Assert.Equal, Assert.True, and Assert.CollectionEqual, are provided in the SimpleTests namespace.
Testing with Microsoft.Testing.Platform
SimpleTests uses Microsoft.Testing.Platform. See Testing with dotnet test for how to run it.
Filtering tests
Pass --filter <text> to run only the tests whose full name namespace.list.test (your TestFolder, TestList, and test names joined by dots) contains <text>.
dotnet run -- --filter passing
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- FSharp.Core (>= 10.1.400)
- Microsoft.Testing.Extensions.TrxReport (>= 2.2.3)
- Microsoft.Testing.Platform (>= 2.2.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.