cucumber / cucumber/common

Support for pure Kotlin tests (needed for Kotlin Multiplatform)

Open
#331 10 comments 0 reactions 0 assignees View on GitHub
:zap: enhancement language: kotlin
Dominant language
No language data
Stars
3.4k
Forks
679
PR merge metrics
No merged PRs in 30d

Description

Kotlin now has support for multiplatform projects. Common code is written in pure Kotlin (no Java dependencies are possible) and then developer creates modules like `common-jvm` and `common-js` which can contain JVM or JS dependencies. The code in the common module should be tested and Jetbrains created annotations in `kotlin.test` package which are automatically translated into JUnit or JS tests. Then tests can run on all platforms with no work. [More documentation here](https://kotlinlang.org/docs/reference/multiplatform.html#multiplatform-tests).

So currently cucumber can be used only in `common-jvm` or `common-js` modules, but not in the common module. Which means writing step definitions twice. It would be great if cucumber supported `kotlin.test` tests directly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.