CasCap.Common.Testing 4.12.1

Prefix Reserved
dotnet add package CasCap.Common.Testing --version 4.12.1
                    
NuGet\Install-Package CasCap.Common.Testing -Version 4.12.1
                    
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="CasCap.Common.Testing" Version="4.12.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CasCap.Common.Testing" Version="4.12.1" />
                    
Directory.Packages.props
<PackageReference Include="CasCap.Common.Testing" />
                    
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 CasCap.Common.Testing --version 4.12.1
                    
#r "nuget: CasCap.Common.Testing, 4.12.1"
                    
#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 CasCap.Common.Testing@4.12.1
                    
#: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=CasCap.Common.Testing&version=4.12.1
                    
Install as a Cake Addin
#tool nuget:?package=CasCap.Common.Testing&version=4.12.1
                    
Install as a Cake Tool

CasCap.Common.Testing

xUnit v3 test infrastructure — logging redirection and conditional-skip attributes for CI environments.

Installation

dotnet add package CasCap.Common.Testing

Purpose

Provides utilities that route ILogger output to xUnit's ITestOutputHelper via a custom ILoggerProvider, plus [Fact]/[Theory] attributes that automatically skip tests when running under Azure DevOps or GitHub Actions.

Target frameworks: net8.0, net9.0, net10.0

Extensions

Extension Description
ServiceCollectionExtensions.AddXUnitLogging() Registers the test logging provider (TestLogProvider) into the DI container

Logging

Type Description
TestLogProvider ILoggerProvider that forwards log entries to xUnit's ITestOutputHelper
TestLogger ILogger implementation backing TestLogProvider

xUnit Attributes

Attribute Description
SkipIfCIBuildFactAttribute Skips the [Fact] when running on any CI server (Azure DevOps or GitHub Actions)
SkipIfCIBuildTheoryAttribute Skips the [Theory] when running on any CI server
SkipIfGithubActionsBuildFactAttribute Skips the [Fact] when running on GitHub Actions
SkipIfGithubActionsBuildTheoryAttribute Skips the [Theory] when running on GitHub Actions
SkipIfAzureDevOpsBuildFactAttribute Skips the [Fact] when running on Azure DevOps
SkipIfAzureDevOpsBuildTheoryAttribute Skips the [Theory] when running on Azure DevOps

Dependencies

NuGet Packages

Package
xunit.v3.extensibility.core

Project References

Project Purpose
CasCap.Common.Logging ApplicationLogging static logger factory
Product 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 is compatible.  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. 
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
4.12.1 50 6/14/2026
4.12.0 52 6/12/2026
4.11.9 52 6/10/2026
4.11.8 138 5/27/2026
4.11.7 103 5/27/2026
4.11.6 106 5/26/2026
4.11.5 110 5/22/2026
4.11.4 129 5/20/2026
4.11.3 158 5/13/2026
4.11.2 114 5/11/2026
4.11.1 108 5/11/2026
4.11.0 133 5/8/2026
4.10.5 109 5/4/2026
4.10.4 114 5/2/2026
4.10.3 192 4/24/2026
4.10.2 115 4/24/2026
4.10.1 126 4/23/2026
4.10.0 107 4/23/2026
4.9.3 119 4/20/2026
4.9.2 125 4/19/2026
Loading failed