https://kotlinlang.org logo
#exposed
Title
# exposed
c

christophsturm

04/27/2020, 8:25 AM
the exposed test suite does not work on lastest macos, i created an issue for it https://github.com/JetBrains/Exposed/issues/894 but I’m not sure whats the best replacement for the outdated lib.
t

tapac

04/27/2020, 10:17 AM
The workaround is to replace it with test-containers, but it will require docker to be installed.
c

christophsturm

04/27/2020, 10:23 AM
how do i tell it to use test-containers?
t

tapac

04/27/2020, 10:29 AM
Oh, sorry, I tell it wrong - not a workaround but a way to go 🙂 It will require the changes in a project. As a workaround you could exclude mysql from tests with
exposed.test.dialects=sqlite,h2,h2_mysql,postgresql,postgresqlng
as system properties.
c

christophsturm

04/27/2020, 11:06 AM
hmm,
./gradlew -Dexposed.test.dialects=sqlite,h2,h2_mysql,postgresql,postgresqlng build
does not work for me. it still wants to start mysql
also if i set dialect=h2 in gradle.properties it wants to start mysql
t

tapac

04/27/2020, 12:38 PM
c

christophsturm

04/27/2020, 2:36 PM
same. my guess is that some tests always use mysql
its in
org.jetbrains.exposed.DefaultsTest
in the java-time module
7 Views