FEFF.TestFixtures.TUnit
1.6.1
Prefix Reserved
dotnet add package FEFF.TestFixtures.TUnit --version 1.6.1
NuGet\Install-Package FEFF.TestFixtures.TUnit -Version 1.6.1
<PackageReference Include="FEFF.TestFixtures.TUnit" Version="1.6.1" />
<PackageVersion Include="FEFF.TestFixtures.TUnit" Version="1.6.1" />
<PackageReference Include="FEFF.TestFixtures.TUnit" />
paket add FEFF.TestFixtures.TUnit --version 1.6.1
#r "nuget: FEFF.TestFixtures.TUnit, 1.6.1"
#:package FEFF.TestFixtures.TUnit@1.6.1
#addin nuget:?package=FEFF.TestFixtures.TUnit&version=1.6.1
#tool nuget:?package=FEFF.TestFixtures.TUnit&version=1.6.1
FEFF.TestFixtures.TUnit
TUnit integration for the FEFF.TestFixtures solution.
About
Part of the FEFF.TestFixtures ecosystem — a framework-agnostic library for creating reusable test fixtures with scoped lifetimes. It replaces setup/teardown methods and the disposable pattern on test classes with composable, dependency-injected fixtures that can be shared across test projects. See the main README for full documentation.
This Package
This package integrates the fixture engine with TUnit, enabling fixture resolution through the TUnit test context.
Quick Start
Add the package to your test project:
dotnet add package FEFF.TestFixtures.TUnitResolve fixtures in your tests:
var tmpDir = TestContext.Current.GetFeffFixture<TmpDirectoryFixture>(); var scoped = TestContext.Current.GetFeffFixture<MyFixture>(FixtureScopeType.Class);
Supported Scopes
| Scope | Description |
|---|---|
TestCase |
Created and destroyed per test case |
Class |
Shared across all tests in a test class |
Assembly |
Shared across all tests in the assembly |
Session |
Shared across the entire test session |
Examples
See Also
| Package | Description |
|---|---|
| FEFF.TestFixtures | Core fixtures library |
| FEFF.TestFixtures.XunitV3 | Xunit v3 integration |
| FEFF.TestFixtures.TUnit | current package |
| FEFF.TestFixtures.AspNetCore | ASP.NET Core fixtures |
| FEFF.TestFixtures.AspNetCore.EF | EF Core database lifecycle fixture |
| FEFF.TestFixtures.AspNetCore.SignalR | SignalR testing fixture |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- FEFF.TestFixtures (>= 1.6.1)
- FEFF.TestFixtures.Engine (>= 1.6.1)
- TUnit.Core (>= 1.46.0)
-
net8.0
- FEFF.TestFixtures (>= 1.6.1)
- FEFF.TestFixtures.Engine (>= 1.6.1)
- TUnit.Core (>= 1.46.0)
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 |
|---|---|---|
| 1.6.1 | 95 | 6/1/2026 |
| 1.6.0 | 258 | 5/6/2026 |
| 1.5.1 | 103 | 4/29/2026 |
| 1.5.0 | 230 | 4/28/2026 |
| 1.4.6 | 132 | 4/23/2026 |
| 1.4.5 | 130 | 4/22/2026 |
| 1.4.4 | 100 | 4/15/2026 |
| 1.4.3-alpha | 94 | 4/15/2026 |
| 1.4.2 | 118 | 4/13/2026 |
| 1.4.1 | 104 | 4/11/2026 |
| 1.3.5 | 101 | 4/11/2026 |
| 1.3.4 | 105 | 4/9/2026 |
| 1.3.3 | 176 | 4/9/2026 |
| 1.3.2 | 117 | 4/5/2026 |
| 1.3.1 | 102 | 4/3/2026 |
| 1.3.0 | 101 | 4/2/2026 |
| 1.2.2 | 183 | 3/28/2026 |
| 1.2.1 | 107 | 3/25/2026 |
| 0.0.12-alpha | 97 | 4/15/2026 |