What's the difference between bazel test
vs bazel run
on the the java test rule? When I run the bazel run
command, my test passes just fine, while with bazel test
I get an error. If needed, I can provide more details, but I was interested in general differences between those two commands.
Bazel test launches the test in an isolated container. Due to this any default environment variable that were not explicitly set would not be available for test system. A typical example would be HELM_HOME being blank in bazel test.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With