hamkrest icon indicating copy to clipboard operation
hamkrest copied to clipboard

Adding hamkrest as test dependency to multiplatform module

Open sith opened this issue 5 years ago • 4 comments

Is it possible to add hamkrest as test dependency in multiplatform package?

I am trying to do this commonTest { dependencies { implementation kotlin('test-common') implementation kotlin('test-annotations-common') implementation 'com.natpryce:hamkrest:1.7.0.0' } }

but that doesn't work. I can see the lib in Intellij but classes are not accessible in tests

sith avatar May 26 '19 01:05 sith

This one works jvmMain { dependencies { implementation kotlin('stdlib-jdk8') implementation 'com.natpryce:hamkrest:1.7.0.0' } }

but it is for jvm. Is there way to do it for common package?

sith avatar May 26 '19 02:05 sith

I've not published Hamkrest as a multiplatform libary. Build file changes to do so are most welcome.

npryce avatar Feb 26 '20 20:02 npryce

Work to make Hamkrest multiplatform is being done on the master branch.

npryce avatar Feb 28 '20 14:02 npryce

There are now two branches, a jvm branch, which is the current mainline, and multiplatform where a multiplatform build is being explored. Kotlin multiplatform builds are still alpha, so this work is not very active.

npryce avatar Sep 18 '20 16:09 npryce