Before Kotest 6, I was using `withEnvironment` in ...
# kotest
s
Before Kotest 6, I was using
withEnvironment
in some Hoplite-related tests. Now that Kotest 6 removed
withEnvironment
, I wonder how I should implement those tests instead... esp. as Hoplite itself is also making use with `withEnvironment`.
d
This is also a very important Issue for me, we have used
eithEnvironment()
quite extensively in our test and my only solution for now was to backport
withEnvironment()
locally. The rationale in the breaking changes is also unclear:
The System.exit and System.env override extensions have been removed due to the deprecation of the SecurityManager in Java.
https://kotest.io/docs/release6/#removed-listeners Why is the deprecation of the security manager connected to a test scope function like
withEnvironment(...)
?
👍🏻 1
s
I've now also cross-posted this at https://github.com/kotest/kotest/issues/5033.
🙌 1