Support for pure Kotlin tests (needed for Kotlin Multiplatform)

未关闭
#331 10 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
kotlin
领域
testing

调研方向

首先阅读链接的 Kotlin Multiplatform 测试文档,并比较 Cucumber 当前在 common-jvm 和 common-js 模块中的使用方式。确定 common 模块直接支持 kotlin.test 所需的范围;完成后应允许 common 代码在所有平台上运行测试,而无需复制 step definitions。

由索引模型根据 Issue 内容生成。

描述

:zap: enhancement language: kotlin

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.

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.

主要语言
没有语言数据
星标
3.4k
派生
676
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cucumber/common 的其他 Issue

查看 cucumber/common 的全部 Issue

相似的 Issue

更多 Testing & QA Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。