-
Notifications
You must be signed in to change notification settings - Fork 29
Class not found #153
Comments
We need more info. I don't have enough info but my guess is that you have the incorrect target name. |
Thanks for taking a look. I didn't upload to remote, here are more info. If a remote repo makes solving issue easier, I am happy to do so.
Then I ran |
Change target name to ExampleTest
|
Thanks, it works. What's the principle of naming a target? |
It’s not ours, it’s just how java_test works and I don’t have the heuristic
off the top of my head. You can override with an explicit test_class
attribute (like the other example shows).
Close this issue?
|
Sounds good, thanks. |
I'm running into this same issue in https://github.com/google/dagger. I'm not the most well-versed in Bazel, but what's the "target" in this context? In my case I'm just running a simple test from the IDE via the plugin, but the error log file is unhelpful.
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kt_jvm_test")
package(default_visibility = ["//:src"])
kt_jvm_test(
name = "test",
srcs = [
"DaggerKotlinIssuesDetectorTest.kt",
],
deps = [
"//java/dagger/lint:dagger_lint",
"@maven//:org_jetbrains_kotlin_kotlin_stdlib",
"@maven//:com_android_tools_lint_lint_checks",
"@maven//:com_android_tools_lint_lint_tests",
"@maven//:com_android_tools_testutils",
"@google_bazel_common//third_party/java/junit",
]
) And the logs equally unhelpful
|
PR with my case is here: google/dagger#1805 |
Hi, |
It might be just because I am doing something wrong.
I set up an example by following exactly this README. I see the same test failure messages from
//test:test/bazel0.21.0
,//test:test/bazel0.22.0
, and//test:test/bazel0.23.2
.I have tried Bazel 0.22.0 and 0.29.0.
The text was updated successfully, but these errors were encountered: