Xunit.DependencyInjection 8.6.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.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.
7.7: Add [MethodData], like [MemberData], support injection.
7.6: Fix #48, each TestRunner should have a different scope.
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.
No packages depend on Xunit.DependencyInjection.
.NET Framework 4.6.1
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- Microsoft.Extensions.Hosting (>= 6.0.0)
- System.Diagnostics.DiagnosticSource (>= 6.0.0)
- xunit.extensibility.execution (>= 2.4.2 && < 3.0.0)
.NET Standard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- Microsoft.Extensions.Hosting (>= 6.0.0)
- System.Diagnostics.DiagnosticSource (>= 6.0.0)
- xunit.extensibility.execution (>= 2.4.2 && < 3.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 11.3.1 | 0 | 08/12/2026 |
| 11.3.0 | 0 | 06/09/2026 |
| 11.2.1 | 0 | 03/18/2026 |
| 11.2.0 | 0 | 02/27/2026 |
| 11.1.1 | 0 | 12/30/2025 |
| 11.1.0 | 0 | 11/11/2025 |
| 11.0.0 | 0 | 09/21/2025 |
| 10.8.0 | 0 | 09/21/2025 |
| 10.7.0 | 0 | 09/03/2025 |
| 10.6.0 | 0 | 07/16/2025 |
| 10.5.0 | 0 | 06/16/2025 |
| 10.4.2 | 0 | 05/18/2025 |
| 10.4.1 | 0 | 05/07/2025 |
| 10.4.0 | 0 | 04/09/2025 |
| 10.3.0 | 0 | 03/10/2025 |
| 10.2.1 | 0 | 02/27/2025 |
| 10.2.0 | 0 | 02/09/2025 |
| 10.1.1 | 0 | 01/27/2025 |
| 10.1.0 | 0 | 01/20/2025 |
| 10.0.0 | 0 | 01/18/2025 |
| 9.9.2 | 0 | 03/18/2026 |
| 9.9.1 | 0 | 05/07/2025 |
| 9.9.0 | 0 | 02/09/2025 |
| 9.8.0 | 0 | 01/20/2025 |
| 9.7.1 | 0 | 12/20/2024 |
| 9.7.0 | 0 | 11/21/2024 |
| 9.6.0 | 0 | 10/30/2024 |
| 9.5.0 | 0 | 10/11/2024 |
| 9.4.0 | 0 | 09/15/2024 |
| 9.3.1 | 0 | 08/30/2024 |
| 9.3.0 | 0 | 05/14/2024 |
| 9.2.1 | 0 | 04/24/2024 |
| 9.1.0 | 0 | 04/03/2024 |
| 9.0.1 | 0 | 03/18/2024 |
| 8.9.1 | 0 | 12/10/2023 |
| 8.9.0 | 0 | 09/19/2023 |
| 8.8.2 | 0 | 08/23/2023 |
| 8.8.1 | 0 | 08/22/2023 |
| 8.7.2 | 0 | 07/16/2023 |
| 8.7.1 | 0 | 03/11/2023 |
| 8.7.0 | 0 | 01/04/2023 |
| 8.6.1 | 0 | 10/22/2022 |
| 8.6.0 | 0 | 10/11/2022 |
| 8.5.0 | 0 | 04/17/2022 |
| 8.4.1 | 0 | 03/24/2022 |
| 8.4.0 | 0 | 03/17/2022 |
| 8.3.0 | 0 | 11/25/2021 |
| 8.2.0 | 0 | 11/12/2021 |
| 8.1.0 | 0 | 10/22/2021 |
| 8.0.0 | 0 | 10/21/2021 |
| 7.7.0 | 0 | 10/14/2021 |
| 7.6.0 | 0 | 09/02/2021 |
| 7.5.1 | 0 | 08/31/2021 |
| 7.5.0 | 1 | 06/18/2026 |
| 7.4.0 | 0 | 08/14/2021 |
| 7.3.0 | 0 | 07/09/2021 |
| 7.2.0 | 0 | 04/19/2021 |
| 7.1.0 | 0 | 11/07/2020 |