Xunit.DependencyInjection
8.9.0
dotnet add package Xunit.DependencyInjection --version 8.9.0
NuGet\Install-Package Xunit.DependencyInjection -Version 8.9.0
<PackageReference Include="Xunit.DependencyInjection" Version="8.9.0" />
paket add Xunit.DependencyInjection --version 8.9.0
#r "nuget: Xunit.DependencyInjection, 8.9.0"
// Install Xunit.DependencyInjection as a Cake Addin
#addin nuget:?package=Xunit.DependencyInjection&version=8.9.0
// Install Xunit.DependencyInjection as a Cake Tool
#tool nuget:?package=Xunit.DependencyInjection&version=8.9.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:
8.9: Extends the test framework to execute tests in parallel.
8.8: Added support `BuildHost` method in startup.
8.7: Allow missing default startup in some case.
8.6: Support any awaitable type of async test method.
8.5: Change analyzer category.
8.4: Fix #63: allow modify default service from DI container.
8.3: Add ActivitySource(name: Xunit.DependencyInjection) and ValueTask/ValueTask<> support.
8.2: Fix #60: support IAsyncDisposable.
8.1: Startup allow static method or class (like Asp.Net Core startup).
8.0: New feature: Support multiple startup.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.1
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- Microsoft.Extensions.Hosting (>= 6.0.0)
- xunit.extensibility.execution (>= 2.4.2 && < 3.0.0)
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- Microsoft.Extensions.Hosting (>= 6.0.0)
- xunit.extensibility.execution (>= 2.4.2 && < 3.0.0)
NuGet packages (11)
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 (16)
Showing the top 5 popular GitHub repositories that depend on Xunit.DependencyInjection:
Repository | Stars |
---|---|
dotnetcore/Util
Util是一个.net core平台下的应用框架,旨在提升小型团队的开发输出能力,由常用公共操作类(工具类)、分层架构基类、Ui组件,第三方组件封装,第三方业务接口封装,配套代码生成模板,权限等组成。
|
|
fullstackhero/dotnet-webapi-boilerplate
Clean Architecture Template for .NET 7.0 WebApi built with Multitenancy Support.
|
|
chromelyapps/Chromely
Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
|
|
dotnetcore/sharding-core
high performance lightweight solution for efcore sharding table and sharding database support read-write-separation .一款ef-core下高性能、轻量级针对分表分库读写分离的解决方案,具有零依赖、零学习成本、零业务代码入侵
|
|
bing-framework/Bing.NetCore
Bing是基于 .net core 3.1 的框架,旨在提升团队的开发输出能力,由常用公共操作类(工具类、帮助类)、分层架构基类,第三方组件封装,第三方业务接口封装等组成。
|
Version | Downloads | Last updated |
---|---|---|
8.9.0 | 5,043 | 9/19/2023 |
8.8.2 | 24,326 | 8/23/2023 |
8.8.1 | 2,915 | 8/22/2023 |
8.7.2 | 60,199 | 7/16/2023 |
8.7.1 | 421,157 | 3/11/2023 |
8.7.0 | 221,103 | 1/4/2023 |
8.6.1 | 410,574 | 10/22/2022 |
8.6.0 | 42,380 | 10/11/2022 |
8.5.0 | 781,829 | 4/17/2022 |
8.4.1 | 129,688 | 3/24/2022 |
8.4.0 | 14,540 | 3/17/2022 |
8.3.0 | 456,890 | 11/25/2021 |
8.2.0 | 202,625 | 11/12/2021 |
8.1.0 | 44,504 | 10/22/2021 |
8.0.0 | 29,766 | 10/21/2021 |
7.7.0 | 136,612 | 10/14/2021 |
7.6.0 | 170,787 | 9/2/2021 |
7.5.1 | 88,037 | 8/31/2021 |
7.4.0 | 68,873 | 8/14/2021 |
7.3.0 | 250,270 | 7/9/2021 |
7.2.0 | 307,829 | 4/19/2021 |
7.1.0 | 361,199 | 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:
8.9: Extends the test framework to execute tests in parallel.
8.8: Added support `BuildHost` method in startup.
8.7: Allow missing default startup in some case.
8.6: Support any awaitable type of async test method.
8.5: Change analyzer category.
8.4: Fix #63: allow modify default service from DI container.
8.3: Add ActivitySource(name: Xunit.DependencyInjection) and ValueTask/ValueTask<> support.
8.2: Fix #60: support IAsyncDisposable.
8.1: Startup allow static method or class (like Asp.Net Core startup).
8.0: New feature: Support multiple startup.