tim
07/03/2020, 1:41 PMsam
07/03/2020, 1:48 PMtim
07/03/2020, 1:57 PMgradle :project:test --tests "com.example.MyTest"
but the following fail (because there are no env vars set) gradle :project:test --tests "com.example.*"
or gradle :project:test
or gradle :project:check
??sam
07/03/2020, 1:58 PMtim
07/03/2020, 1:58 PMsam
07/03/2020, 1:58 PMtim
07/03/2020, 1:59 PMsam
07/03/2020, 1:59 PMtim
07/03/2020, 1:59 PMgradle :cloud:test --tests "io.glimpseprotocol.cloud.SingleVaultTest"
fails when the init block throwssam
07/03/2020, 2:01 PMtim
07/03/2020, 2:01 PMsam
07/03/2020, 2:04 PMtim
07/03/2020, 2:07 PMsam
07/03/2020, 2:11 PMtim
07/03/2020, 2:11 PMsam
07/03/2020, 2:17 PMtim
07/03/2020, 2:22 PMsam
07/03/2020, 2:24 PMtim
07/03/2020, 2:27 PMsam
07/03/2020, 2:36 PMtim
07/03/2020, 2:36 PMpackage io.glimpseprotocol.cloud
import io.kotest.core.config.AbstractProjectConfig
import io.kotest.core.listeners.Listener
import io.kotest.extensions.system.SystemEnvironmentProjectListener
class ProjectConfig : AbstractProjectConfig() {
// init {
// error("I'm an error!!!!")
// }
override fun listeners(): List<Listener> = listOf(
SystemEnvironmentProjectListener(
mapOf(
"GLIMPSE_ENV" to "test",
"GLIMPSE_SERVICE_NAME" to "cloud",
"GLIMPSE_VERSION" to "x.x.x-test",
"GLIMPSE_PORT" to "20001",
"GLIMPSE_DOMAIN" to "localhost",
"GLIMPSE_ROOT_PATH" to "/cloud/v1",
"GLIMPSE_COOKIE_ENCRYPT" to "covfefeecovfefee",
"GLIMPSE_COOKIE_SIGN" to "covfefeecovfefee",
"GLIMPSE_MONGO_URI" to "<mongodb://127.0.0.1:27017/?readPreference=primary&ssl=false>",
"GLIMPSE_LOGGING_LEVEL" to "debug"
)
)
)
}
sam
07/03/2020, 2:40 PMtim
07/03/2020, 2:40 PMsam
07/03/2020, 2:42 PMtim
07/03/2020, 2:42 PMsam
07/03/2020, 2:43 PMtim
07/03/2020, 2:43 PMsam
07/03/2020, 2:44 PMtim
07/03/2020, 2:44 PMsam
07/03/2020, 2:44 PMtim
07/03/2020, 2:47 PMsam
07/03/2020, 2:48 PMtim
07/03/2020, 2:49 PMsam
07/03/2020, 2:50 PMtim
07/03/2020, 2:58 PMSystemEnvironmentProjectListener)
.
Should kotest be picking up env varialbes from build.gradle.kts? If not, how do people reconcile thier cli test running from the idea test running?sam
07/06/2020, 12:56 PMtim
07/06/2020, 12:59 PMsam
07/06/2020, 1:00 PMtim
07/06/2020, 1:01 PM