Hi, all) want to use envs in tests but faced some ...
# kotest
v
Hi, all) want to use envs in tests but faced some problems, can you please help? More details in stackoverflow question. https://stackoverflow.com/questions/72586298/kotest-change-environment-variables
j
I'm on a trip right now but can help when I get back Monday, I use withEnvironment all the time 👍 I think you might just need to set the correct override as the second argument to the withEnvironment call
❤️ 1
e
Happens when you try to use withEnvironment with JDK17. If you try it with lower java version it should work. I'm not sure if there's any workaround right now
s
I think realistically the only "fix" is it not use env vars for this, but pass some variables in that you can then populate separately in tests.
e
Came across this. Maybe something in there could work. https://github.com/junit-pioneer/junit-pioneer/issues/509
s
There is really no nicer way to say this: you should have read the documentation
lol
😂 1