Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bazel run vs test

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.

like image 496
nme Avatar asked Nov 07 '22 08:11

nme


1 Answers

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.

like image 92
rbrb Avatar answered Nov 11 '22 19:11

rbrb