improve-coverage
Installation
SKILL.md
Improve Code Coverage
Improve test coverage for a Bazel C++ test target or source file path.
Input Resolution
-
Bazel test target (starts with
//, e.g.//src/v/bytes/tests:iobuf_test): use it directly. -
Source file path (e.g.
src/v/bytes/iobuf.cc): find the test target:bazel query "kind('.*_test', rdeps(//src/v/..., //$(dirname $FILE):$(basename $FILE .cc), 1))" 2>/dev/nullIf multiple targets match, pick the one in the closest
tests/directory. If none match, tell the user and stop.