У меня есть проект Bazel в Kotlin, и я пытаюсь запустить модульные тесты с JUnit 5. Вот мои цели:
kt_jvm_library(
name = "lib",
srcs = glob(["src/main/kotlin/**/*.kt"]),
)
kt_jvm_test(
name = "tests",
main_class = "org.junit.platform.console.ConsoleLauncher",
args = [
"--select-package=com.acme",
],
srcs = glob(["src/test/kotlin/**/*.kt"]),
deps = [
":lib",
"@maven//:org_junit_jupiter_junit_jupiter_api",
"@maven//:org_junit_jupiter_junit_jupiter_engine",
"@maven//:org_junit_jupiter_junit_jupiter_params",
"@maven//:org_junit_platform_junit_platform_console",
],
)
Когда я запускаю bazel run //:tests
, я получаю такой вывод:
Thanks for using JUnit! Support its development at https://junit.org/sponsoring
╷
└─ JUnit Jupiter ✔
Test run finished after 43 ms
[ 1 containers found ]
[ 0 containers skipped ]
[ 1 containers started ]
[ 0 containers aborted ]
[ 1 containers successful ]
[ 0 containers failed ]
[ 0 tests found ]
[ 0 tests skipped ]
[ 0 tests started ]
[ 0 tests aborted ]
[ 0 tests successful ]
[ 0 tests failed ]
Как видите, тесты не найдены. Что не так с моей конфигурацией?