Skip to content

Commit

Permalink
set replacement boost_ut lib as testonly
Browse files Browse the repository at this point in the history
and remove it from code coverage reports.

Change-Id: I57311078b4a256b83e81341b456144d408d9e3c4
  • Loading branch information
oliverlee committed Nov 22, 2023
1 parent 12dde2c commit 9d33e38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
bazel \
--bazelrc=.github/workflows/ci.bazelrc \
coverage \
--instrumentation_filter="-/:boost_ut" \
//...
- uses: codecov/codecov-action@v3
Expand Down
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ buildifier(

cc_library(
name = "boost_ut",
testonly = True,
hdrs = ["ut.hpp"],
include_prefix = "boost",
visibility = ["//:__subpackages__"],
Expand Down
1 change: 1 addition & 0 deletions test_ut/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ load("@rules_cc//cc:defs.bzl", "cc_binary")

cc_binary(
name = "test_ut_example",
testonly = True,
srcs = ["test_ut_example.cpp"],
deps = ["//:boost_ut"],
)

0 comments on commit 9d33e38

Please sign in to comment.