Xunit.DependencyInjection 7.5.1

.NET Standard 2.0 .NET Framework 4.6.1
There is a newer version of this package available.
See the version list below for details.
dotnet add package Xunit.DependencyInjection --version 7.5.1
NuGet\Install-Package Xunit.DependencyInjection -Version 7.5.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="Xunit.DependencyInjection" Version="7.5.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xunit.DependencyInjection --version 7.5.1
#r "nuget: Xunit.DependencyInjection, 7.5.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.
// Install Xunit.DependencyInjection as a Cake Addin
#addin nuget:?package=Xunit.DependencyInjection&version=7.5.1

// Install Xunit.DependencyInjection as a Cake Tool
#tool nuget:?package=Xunit.DependencyInjection&version=7.5.1

Use Microsoft.Extensions.DependencyInjection to inject xunit testclass. If you want write Microsoft.Extensions.Logging to ITestOutputHelper, please install Xunit.DependencyInjection.Logging
Release notes:
7.5: Add XunitTestCaseRunnerAdapter, It will be support more XunitTestCase type.
7.4: Always set applicationName, unwarp TargetInvocationException.
7.3: Fix #41, activate ITestOutputHelperAccessor on tests without a constructor.
7.2: Add Startup analyzer.
7.1: Fix can't run test case when host.StartAsync() throw exception.
7.0: Add fixture injection and refactor DependencyInjectionTestFramework, you don't have to declare the [assembly: TestFrameworkAttribute] on normal case.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (9)

Showing the top 5 NuGet packages that depend on Xunit.DependencyInjection:

Package Downloads
Xunit.DependencyInjection.Logging

Support Microsoft.Extensions.Logging to ITestOutputHelper. public void Configure(IServiceProvider provider) { XunitTestOutputLoggerProvider.Register(provider); }

Xunit.DependencyInjection.Demystifier

Use Ben.Demystifier Formate Exception. public void ConfigureServices(IServiceCollection services) { services.UseDemystifyExceptionFilter(); }

Xunit.DependencyInjection.SkippableFact

Support Xunit.SkippableFact. public void ConfigureServices(IServiceCollection services) { services.AddSkippableFactSupport(); }

Harpy.Test.Domain

Basis for the domain test layer of the Harpy Framework

EncompassApi.xUnit

A xUnit library

GitHub repositories (14)

Showing the top 5 popular GitHub repositories that depend on Xunit.DependencyInjection:

Repository Stars
dotnetcore/Util
Util是一个.net core平台下的应用框架,旨在提升小型团队的开发输出能力,由常用公共操作类(工具类)、分层架构基类、Ui组件,第三方组件封装,第三方业务接口封装,配套代码生成模板,权限等组成。
chromelyapps/Chromely
Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
fullstackhero/dotnet-webapi-boilerplate
Clean Architecture Template for .NET 6.0 WebApi built with Multitenancy Support.
bing-framework/Bing.NetCore
Bing是基于 .net core 3.1 的框架,旨在提升团队的开发输出能力,由常用公共操作类(工具类、帮助类)、分层架构基类,第三方组件封装,第三方业务接口封装等组成。
dotnetcore/sharding-core
high performance lightweight solution for efcore sharding table and sharding database support read-write-separation .一款ef-core下高性能、轻量级针对分表分库读写分离的解决方案,具有零依赖、零学习成本、零业务代码入侵
Version Downloads Last updated
8.7.1 10,780 3/11/2023
8.7.0 89,073 1/4/2023
8.6.1 239,898 10/22/2022
8.6.0 32,500 10/11/2022
8.5.0 560,475 4/17/2022
8.4.1 99,299 3/24/2022
8.4.0 11,264 3/17/2022
8.3.0 377,366 11/25/2021
8.2.0 157,245 11/12/2021
8.1.0 39,090 10/22/2021
8.0.0 23,932 10/21/2021
7.7.0 130,620 10/14/2021
7.6.0 141,070 9/2/2021
7.5.1 61,300 8/31/2021
7.4.0 58,686 8/14/2021
7.3.0 224,029 7/9/2021
7.2.0 272,794 4/19/2021
7.1.0 332,742 11/7/2020

Use Microsoft.Extensions.DependencyInjection to inject xunit testclass. If you want write Microsoft.Extensions.Logging to ITestOutputHelper, please install Xunit.DependencyInjection.Logging
Release notes:
7.5: Add XunitTestCaseRunnerAdapter, It will be support more XunitTestCase type.
7.4: Always set applicationName, unwarp TargetInvocationException.
7.3: Fix #41, activate ITestOutputHelperAccessor on tests without a constructor.
7.2: Add Startup analyzer.
7.1: Fix can't run test case when host.StartAsync() throw exception.
7.0: Add fixture injection and refactor DependencyInjectionTestFramework, you don't have to declare the [assembly: TestFrameworkAttribute] on normal case.