Skip to content

coverage: coverage runs for a single test target.#3922

Merged
htuch merged 1 commit intoenvoyproxy:masterfrom
htuch:fuzz-coverage
Jul 23, 2018
Merged

coverage: coverage runs for a single test target.#3922
htuch merged 1 commit intoenvoyproxy:masterfrom
htuch:fuzz-coverage

Conversation

@htuch
Copy link
Member

@htuch htuch commented Jul 22, 2018

Useful when exploring fuzzer code coverage with the checked-in corpus, e.g. #3921.

Signed-off-by: Harvey Tuch htuch@google.com

Useful when exploring fuzzer code coverage with the checked-in corpus, e.g. envoyproxy#3921.

Signed-off-by: Harvey Tuch <htuch@google.com>
Copy link
Contributor

@alyssawilk alyssawilk left a 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
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

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?

Copy link
Contributor

@alyssawilk alyssawilk left a 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
Copy link
Contributor

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?

@htuch htuch merged commit 391150a into envoyproxy:master Jul 23, 2018
@htuch htuch deleted the fuzz-coverage branch July 23, 2018 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants