Xunit.DependencyInjection 7.2.0

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.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.

There is a newer version of this package available.
See the version list below for details.
Install-Package Xunit.DependencyInjection -Version 7.2.0
dotnet add package Xunit.DependencyInjection --version 7.2.0
<PackageReference Include="Xunit.DependencyInjection" Version="7.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xunit.DependencyInjection --version 7.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xunit.DependencyInjection, 7.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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.2.0

// Install Xunit.DependencyInjection as a Cake Tool
#tool nuget:?package=Xunit.DependencyInjection&version=7.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

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.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.

NuGet packages (5)

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

Package Downloads
Xunit.DependencyInjection.Logging
Support Microsoft.Extensions.Logging to ITestOutputHelper. protected override void Configure(IServiceProvider provider) {{ provider.GetRequiredService<ILoggerFactory>() .AddProvider(new XunitTestOutputLoggerProvider(provider.GetRequiredService<ITestOutputHelperAccessor>())); }}
Xunit.DependencyInjection.Demystifier
Use Ben.Demystifier Formate Exception. protected override IServiceProvider ConfigureServices(IServiceCollection services) {{ services.AddSingleton<IAsyncExceptionFilter, DemystifyExceptionFilter>(); }}
Harpy.Test.Domain
Basis for the domain test layer of the Harpy Framework
EncompassApi.xUnit
A xUnit library
XUnit.Extensions.Essentials
Package Description

GitHub repositories (3)

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

Repository Stars
ShokoAnime/ShokoServer
Repository for Shoko Server.
WeihanLi/WeihanLi.Npoi
NPOI Extensions, excel/csv importer/exporter for IEnumerable<T>/DataTable, fluentapi(great flexibility)/attribute configuration
pengweiqhca/Xunit.DependencyInjection
Use Microsoft.Extensions.DependencyInjection to resolve xUnit test cases.

Version History

Version Downloads Last updated
7.3.0 3,319 7/9/2021
7.2.0 52,223 4/19/2021
7.1.0 154,143 11/7/2020