you need to configure the test task and pass that in manually. look at the Test docs and you'll see it
c
Colton Idle
02/06/2022, 7:37 PM
Thanks. The testing docs were helpful but didn't have anything related to kts. I'll try googling a bit more later tonight
v
Vampire
02/06/2022, 7:54 PM
Tests are run in a separate process. You just set the system property for the Gradle process. If you want the system property to be available in your test, your need to configure that for the test task in your build script. Groovy or Kotlin DSL doesn't make much difference there.