You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dependency IReqnrollOutputHelper is not injected by default when using Autofac plugin. If you try to add it without registering it will result in the above exception. The other DI plugins seem to inject this by default but Autofac doesn't. The workaround is to inject it manually like so:
containerBuilder
.Register<IReqnrollOutputHelper>(c =>
{
var threadContext = c.Resolve<TestThreadContext>();
var outputHelper = threadContext.TestThreadContainer.Resolve<IReqnrollOutputHelper>();
return outputHelper;
});
Steps to Reproduce
Try to use IReqnrollOutputHelper in your project anywhere in your project while using Autofac plugin.
Link to Repro Project
No response
The text was updated successfully, but these errors were encountered:
Reqnroll Version
2.2.1
Which test runner are you using?
xUnit
Test Runner Version Number
2.8.1
.NET Implementation
.NET 8.0
Test Execution Method
Visual Studio Test Explorer
Content of reqnroll.json configuration file
No response
Issue Description
The dependency IReqnrollOutputHelper is not injected by default when using Autofac plugin. If you try to add it without registering it will result in the above exception. The other DI plugins seem to inject this by default but Autofac doesn't. The workaround is to inject it manually like so:
Steps to Reproduce
Try to use IReqnrollOutputHelper in your project anywhere in your project while using Autofac plugin.
Link to Repro Project
No response
The text was updated successfully, but these errors were encountered: