Kotlin multiplatform projects run common module test in IDEA

点点圈 提交于 2019-12-10 13:59:39

问题


I am using kotlin multiplatform project with js/jvm subprojects. I used to have unit tests in jvm subproject (annotated using kotlin test annotations) and I easily ran tests using rightclick + Run 'xxx' test using junit. That option is not possible once I move those tests to common module instead.

I can still run tests using command line gradle and I even managed to create working Run configuration that worked, but I am missing that simple "right click to run" on class or even specific test method for convenience.

Is there any way to achieve that in project?

Thanks!


回答1:


Which Kotlin version do you use? There was a bug with test gutters in 1.2.60, but it is fixed in the very next release which is expected to be at the beginning of the next week.

It actually should work as you described, so if it's not the version with the bug, then it's better to submit it.



来源:https://stackoverflow.com/questions/51910553/kotlin-multiplatform-projects-run-common-module-test-in-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!