kotlin-test 与 kotlin-test-junit
kotlin-test vs kotlin-test-junit
我有一个编译为 java 的 kotlin 项目。
我的测试库是 junit。
我使用 maven 作为我的依赖管理和 Intellij IDEA。
最近我在我的 pom 中收到了那个奇怪的警告。
Inspection info: If you have kotlin-test and junit dependency then
most likely you better to include kotlin-test-junit instead of just
kotlin-test
kotlin-test 和 kotlin-test-junit 有什么区别?
从我读到的内容来看,kotlin-test 似乎没有被弃用,那么为什么 intellij 推荐 kotlin-test-junit 而不是 kotlin-test?
所以我找到了答案here(我不明白我第一次搜索时是怎么错过的)
简而言之kotlin-test
库提供了一组独立于测试框架的注释和实用函数。
其中 kotlin-test-junit
库提供了 Junit 断言器之上的实现,以及 kotlin-test
提供的注释和实用函数。
我有一个编译为 java 的 kotlin 项目。 我的测试库是 junit。 我使用 maven 作为我的依赖管理和 Intellij IDEA。 最近我在我的 pom 中收到了那个奇怪的警告。
Inspection info: If you have kotlin-test and junit dependency then most likely you better to include kotlin-test-junit instead of just kotlin-test
kotlin-test 和 kotlin-test-junit 有什么区别?
从我读到的内容来看,kotlin-test 似乎没有被弃用,那么为什么 intellij 推荐 kotlin-test-junit 而不是 kotlin-test?
所以我找到了答案here(我不明白我第一次搜索时是怎么错过的)
简而言之kotlin-test
库提供了一组独立于测试框架的注释和实用函数。
其中 kotlin-test-junit
库提供了 Junit 断言器之上的实现,以及 kotlin-test
提供的注释和实用函数。