https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
e

Evgeniy Zaharov

04/28/2018, 9:37 AM
Does it possible to use
expectedBy
declaration with
library
? Or if no, then the question is how we could implement (in platform modules) common declaration from common dependencies?
i know it, but what to do with common library, witch I have used in common module? for example. I have common module with tests, to user test annotation and asserts i have include
kotlin-test-common
and
kotlin-test-annotation-common
. Public implementation of this common modules in jvm exists only for
junit4
, but not for
junit5
. I want to manually implement needed annotations and asserts in
junit5
by adding
actual
declaration in platform jvm module. But for now, does it possible? I cannot use for it
expectedBy
.
i

ilya.gorbunov

05/03/2018, 1:21 AM
No, that's not possible without the sources of the common library. To provide an actual implementation for another platform you need to have source project of the common library.
e

Evgeniy Zaharov

05/03/2018, 7:12 AM
thats bad.. Do you have any plans to simplify this in future?
ohh.. i think i have understand why it’s not possible ok.. so, do have any plans to implement kotlin-test in
junit5
🙂 ?
i

ilya.gorbunov

05/04/2018, 7:16 PM
No plans yet, but we're open to PRs. For example TestNG support was submitted as a pull request and merged in 1.2.30
e

Evgeniy Zaharov

05/10/2018, 2:48 PM
2 Views