Skip to content
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

Add test coverage #1366

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Add test coverage #1366

merged 1 commit into from
Sep 12, 2024

Conversation

sondavidb
Copy link
Contributor

@sondavidb sondavidb commented Sep 5, 2024

Issue #, if available:
#1081

Description of changes:
Added necessary code to add code coverage for our tests. This should help us to get a better idea of where our test suite stands as a whole.

This is really only a preliminary step, the next step would probably be finding a way to combine these metrics, but for now this should help us ensure we're on the right path.

Testing performed:
make test-with-coverage and make integration-with-coverage

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sondavidb sondavidb requested a review from a team as a code owner September 5, 2024 19:04
@github-actions github-actions bot added go Pull requests that update Go code testing Unit and/or integration tests github_actions Pull requests that update GitHub Actions code labels Sep 5, 2024
@sondavidb sondavidb marked this pull request as draft September 5, 2024 19:56
@sondavidb sondavidb force-pushed the add-test-cov-v2 branch 3 times, most recently from 00d36c8 to 7c0d476 Compare September 5, 2024 22:07
@sondavidb sondavidb marked this pull request as ready for review September 5, 2024 22:31
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
.github/workflows/build.yml Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
austinvazquez
austinvazquez previously approved these changes Sep 6, 2024
Copy link
Contributor

@austinvazquez austinvazquez left a comment

Choose a reason for hiding this comment

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

Nice, excited to see this come through!

.github/workflows/build.yml Outdated Show resolved Hide resolved
This change adds code coverage to our workflows and the necessary
Makefile targets to support this.

Signed-off-by: David Son <davbson@amazon.com>
@sondavidb
Copy link
Contributor Author

Discussed offline, new changes do the following

  • Separate cleaning coverage data from the regular clean Makefile directive (though it still runs it, now it is its own target)
  • Separate running testing suites with coverage from showing the results of said coverage
  • Add option to generate HTML line-by-line reports for developers to use locally

@sondavidb sondavidb merged commit 871bec2 into awslabs:main Sep 12, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code go Pull requests that update Go code testing Unit and/or integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants