Open cremor opened 1 year ago
I'm running into the same issue. Using this very dirty workaround
if (Environment.GetEnvironmentVariable("APPLICATION_INTEGRATION_TEST") is not "true")
IsleConfiguration.Configure(_ => {});
On further thought, I just ended up calling it from a static constructor. Should work in both normal application runtime and in integration test scenarios
This issue is very similar to #3 As explained there, you have to call
IsleConfiguration.Reset()
to get ASP.NET Core integration tests with ISLE to work. But this only helps as long as you execute all integration tests sequentially. If you want to execute them in parallel then you'll again get "Isle has already been configured" exceptions because multipleIsleConfiguration.Configure
calls may happen between theIsleConfiguration.Reset()
calls.Please make it possible to run parallel ASP.NET Core integration tests with ISLE.