Skip to content

Only add CoverageOutputGenerator in coverage mode.#8477

Closed
iirina wants to merge 4 commits intobazelbuild:masterfrom
iirina:sh-test-coverage
Closed

Only add CoverageOutputGenerator in coverage mode.#8477
iirina wants to merge 4 commits intobazelbuild:masterfrom
iirina:sh-test-coverage

Conversation

@iirina
Copy link
Copy Markdown
Contributor

@iirina iirina commented May 28, 2019

Fixes #8355.

@iirina iirina requested a review from hlopko May 28, 2019 12:42
Copy link
Copy Markdown
Member

@hlopko hlopko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding time to work on this so quickly! Only single clasification needed. Thank you!

Would you mind adding 2 tests (unless one of them exists already):

  1. one in BuildViewTestCase that tests that sh_tests implicit dependency label is null
  2. one in CoverageCommandTest that tests that sh_test in coverage has implicit dependency on the right label. I'm not sure if we have this test in bazel, if we don't and you don't know how to proceed, I'll be fine with having an integration test that will cover this branch.

Thanks you!

Rename  to :lcov_merger according to the late-bound attributes naming policy.
@iirina iirina force-pushed the sh-test-coverage branch from 2ba2e88 to 18a5a74 Compare May 28, 2019 13:59
@iirina iirina requested review from oquenchil and scentini as code owners May 28, 2019 13:59
@iirina iirina force-pushed the sh-test-coverage branch from 18a5a74 to 18a395d Compare May 28, 2019 14:02
@iirina
Copy link
Copy Markdown
Contributor Author

iirina commented May 28, 2019

I added the tests in a new BazelShTestConfiguredTargetTest. We already have integration tests for coverage (including for sh_test) that test the coverage output. There is full test coverage right now.

@iirina iirina requested a review from hlopko May 28, 2019 14:06
Copy link
Copy Markdown
Member

@hlopko hlopko 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 so much!

@bazel-io bazel-io closed this in 384e1cb May 29, 2019
irengrig pushed a commit to irengrig/bazel that referenced this pull request Jun 18, 2019
irengrig pushed a commit to irengrig/bazel that referenced this pull request Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unnecessary dependencies from coverage collection

3 participants