• Home
  • Raw
  • Download

Lines Matching +full:bazel +full:- +full:0

1 # Quickstart: Building with Bazel
3 This tutorial aims to get you up and running with GoogleTest using the Bazel
13 * [Bazel](https://bazel.build/), the preferred build system used by the
19 If you don't already have Bazel installed, see the
20 [Bazel installation guide](https://docs.bazel.build/versions/master/install.html).
26 ## Set up a Bazel workspace
29 [Bazel workspace](https://docs.bazel.build/versions/master/build-ref.html#workspace)
43 [Bazel external dependency](https://docs.bazel.build/versions/master/external.html)
45 [`http_archive` rule](https://docs.bazel.build/versions/master/repo/http.html#http_archive).
55 strip_prefix = "googletest-609281088cfefc76f9d0ce82e1ff6c30cc3591e5",
65 Bazel also needs a dependency on the
73 strip_prefix = "rules_cc-40548a2974f1aea06215272d9c2b47a14a24e556",
81 With your Bazel workspace set up, you can now use GoogleTest code within your
119 file (`@com_google_googletest`). For more information about Bazel `BUILD` files,
121 [Bazel C++ Tutorial](https://docs.bazel.build/versions/master/tutorial/cpp.html).
126 <strong>my_workspace$ bazel test --test_output=all //:hello_test</strong>
133 [----------] Global test environment set-up.
134 [----------] 1 test from HelloTest
136 [ OK ] HelloTest.BasicAssertions (0 ms)
137 [----------] 1 test from HelloTest (0 ms total)
139 [----------] Global test environment tear-down
140 [==========] 1 test from 1 test suite ran. (0 ms total)
143 Target //:hello_test up-to-date:
144 bazel-bin/hello_test
146 INFO: 27 processes: 8 internal, 19 linux-sandbox.