Every time I run bazel test <targets...>
it builds all target test binaries and runs them. Is there a way to only compile them or build them without running them?
You can use bazel build <targets...>
to just build those targets without running the tests.