Soenneker.Tests.Attributes.Local
11.0.174
Prefix Reserved
dotnet add package Soenneker.Tests.Attributes.Local --version 11.0.174
NuGet\Install-Package Soenneker.Tests.Attributes.Local -Version 11.0.174
<PackageReference Include="Soenneker.Tests.Attributes.Local" Version="11.0.174" />
<PackageVersion Include="Soenneker.Tests.Attributes.Local" Version="11.0.174" />
<PackageReference Include="Soenneker.Tests.Attributes.Local" />
paket add Soenneker.Tests.Attributes.Local --version 11.0.174
#r "nuget: Soenneker.Tests.Attributes.Local, 11.0.174"
#:package Soenneker.Tests.Attributes.Local@11.0.174
#addin nuget:?package=Soenneker.Tests.Attributes.Local&version=11.0.174
#tool nuget:?package=Soenneker.Tests.Attributes.Local&version=11.0.174
Soenneker.Tests.Attributes.Local
A TUnit skip attribute for tests that should run on a developer machine but not in a detected CI pipeline.
Installation
dotnet add package Soenneker.Tests.Attributes.Local
Usage
using Soenneker.Tests.Attributes.Local;
public sealed class BrowserTests
{
[Test]
[LocalOnly("requires an interactive browser profile")]
public async Task Uses_local_browser_profile()
{
// ...
}
}
When Soenneker.Utils.Environment.EnvironmentUtil.IsPipeline is true, TUnit reports the test as skipped. Otherwise, the test executes normally. The optional reason is appended to the default Local only skip message.
LocalOnly does not verify that required local services, credentials, files, or applications are available. Keep the test's own setup explicit, and use a normal conditional skip when availability requires a more specific check.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Utils.Environment (>= 11.0.798)
- TUnit.Core (>= 1.85.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 |
|---|---|---|
| 11.0.174 | 0 | 11/15/2026 |
| 11.0.173 | 213 | 11/13/2026 |
| 11.0.172 | 210 | 11/11/2026 |
| 11.0.171 | 85 | 11/11/2026 |
| 11.0.170 | 275 | 11/11/2026 |
| 11.0.169 | 88 | 11/11/2026 |
| 11.0.168 | 306 | 11/11/2026 |
| 11.0.167 | 189 | 11/11/2026 |
| 11.0.166 | 604 | 11/10/2026 |
| 11.0.165 | 386 | 11/7/2026 |
| 11.0.164 | 424 | 11/6/2026 |
| 11.0.163 | 344 | 11/4/2026 |
| 11.0.162 | 188 | 11/3/2026 |
| 11.0.161 | 386 | 11/3/2026 |
| 11.0.160 | 211 | 11/3/2026 |
| 11.0.159 | 220 | 11/3/2026 |
| 11.0.158 | 198 | 11/2/2026 |
| 11.0.157 | 264 | 11/2/2026 |
| 11.0.156 | 236 | 11/1/2026 |
| 11.0.155 | 378 | 10/29/2026 |