Sebastian Schuberth
08/25/2025, 7:37 PMwithEnvironment
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`.Sebastian Schuberth
08/25/2025, 7:42 PMwithEnvironment
.Denis Pasek
08/28/2025, 1:08 PMeithEnvironment()
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(...)
?Denis Pasek
08/28/2025, 1:08 PMSebastian Schuberth
08/29/2025, 8:16 AM