Search code examples
bazel

Is there a way to build tests with bazel without running them?


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?


Solution

  • You can use bazel build <targets...> to just build those targets without running the tests.