Does it possible to use `expectedBy` declaration w...
# multiplatform
e
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
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
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
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