-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coverage: coverage runs for a single test target. #3922
Conversation
Useful when exploring fuzzer code coverage with the checked-in corpus, e.g. envoyproxy#3921. Signed-off-by: Harvey Tuch <htuch@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the improvements here!
the `COVERAGE_TARGET` and `VALIDATE_COVERAGE` environment variables, e.g.: | ||
|
||
``` | ||
COVERAGE_TARGET=//test/common/common:base64_fuzz_test VALIDATE_COVERAGE=false test/run_envoy_bazel_coverage.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will happen if we do coverage target for something like foo/bar:all or foo/bar/... ?
I'd assume the tests would run but the copy would still fail. Worth fixing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not right now, since the coverage story is going to be replaced soon enough with bazel coverage
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Soon enough" you say.... so can I quote you on that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM because even if it doesn't fix everything it's a nice incremental improvement. :-)
the `COVERAGE_TARGET` and `VALIDATE_COVERAGE` environment variables, e.g.: | ||
|
||
``` | ||
COVERAGE_TARGET=//test/common/common:base64_fuzz_test VALIDATE_COVERAGE=false test/run_envoy_bazel_coverage.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Soon enough" you say.... so can I quote you on that?
Useful when exploring fuzzer code coverage with the checked-in corpus, e.g. #3921.
Signed-off-by: Harvey Tuch htuch@google.com