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
For "long running" test fixtures (e.g. a in-process HTTP server for a test collection) it is not possible to hook-up ITestOutputHelper as that's a per-test dependency.
This could be "solved" by doing something like HttpContextAccessor and registering a service with DI that can be used to "reach-in" to the test server from tests and set the ITestOutputHelper to use for a given test lifetime and then remove it again.
The text was updated successfully, but these errors were encountered:
Initial infrastructure to get ITestOutputHelper from an accessor (like IHttpContextAccessor) so long-lived test fixtures can register the provider without immediate access to an ITestOutputHelper.
Relates to #7.
For "long running" test fixtures (e.g. a in-process HTTP server for a test collection) it is not possible to hook-up
ITestOutputHelper
as that's a per-test dependency.This could be "solved" by doing something like
HttpContextAccessor
and registering a service with DI that can be used to "reach-in" to the test server from tests and set theITestOutputHelper
to use for a given test lifetime and then remove it again.The text was updated successfully, but these errors were encountered: