Xunit.DependencyInjection icon indicating copy to clipboard operation
Xunit.DependencyInjection copied to clipboard

Use Microsoft.Extensions.DependencyInjection to resolve xUnit test cases.

Results 16 Xunit.DependencyInjection issues
Sort by recently updated
recently updated
newest added

Hello. Is IAsyncLifetime supported? Because it seems InitializeAsync is not called for dependencies. Or is there an alternative way to invoke async initialization for fixtures (like databases)?

I have a Startup class that sets a static class property in the Startup's ConfigureServices method. My test project contains two test classes that access this property. Running each class...

**Is your feature request related to a problem? Please describe.** I use logger scopes to add call stack context to all my log messages, but that information isn't output to...

Changes: - Support more method sigunatures for Startup.ConfigureServices() - Add tests for new method signatures - Update README with syntax and examples Reasoning: - This change allows the (re-)use of...

**Describe the bug** Dependency injection doesn't work with live unit testing because Default Startup is not found. **To Reproduce** Steps to reproduce the behavior: Launch unit tests with Live unit...

**Is your feature request related to a problem? Please describe.** Yes, the issue is, this library solves a real problem, and therefore it is very useful. However, since it has...

I'm trying to re-configure the services in the container based on tests. For example, I want to intercept the Http request and return an error response for one test, but...

I was trying to use solution from https://www.meziantou.net/parallelize-test-cases-execution-in-xunit.htm which allow to run tests inside class in parallel. It works fine with default XUnitTestFramework, but doesn't work with xunit.DependencyInjection with errors...

I encountered an issue while using MartinCostello.Logging.XUnit. The problem is that I'm interacting with an unmanaged library and receiving a callback from it. For some unknown reason, logging within the...

**Is your feature request related to a problem? Please describe.** It seems like a violation of encapsulation to have to expose the underlying implementation of ITestOutputHelper by requiring a cast...