Skip to content

build: expand test coverage scope to cmd/, api/, and internal/#750

Merged
ArangoGutierrez merged 1 commit intoNVIDIA:mainfrom
ArangoGutierrez:release/v0.3.0-coverage-scope
Mar 30, 2026
Merged

build: expand test coverage scope to cmd/, api/, and internal/#750
ArangoGutierrez merged 1 commit intoNVIDIA:mainfrom
ArangoGutierrez:release/v0.3.0-coverage-scope

Conversation

@ArangoGutierrez
Copy link
Copy Markdown
Collaborator

Summary

  • Extends the test Makefile target to run go test with coverage across all four package trees: ./pkg/..., ./cmd/..., ./api/..., and ./internal/...
  • All three new directories contain test files that were previously excluded from the Coveralls report
  • No changes to the CI workflow: .github/workflows/golang.yaml already delegates to make coverage

Packages with test files added to coverage scope

  • cmd/cli/ - 12 test files (dryrun, update, delete, status, describe, common, cleanup, list, scp, create)
  • api/holodeck/v1alpha1/ - 2 test files (types, validation)
  • internal/ - 3 test files (ami/resolver, logger, instances)

Test plan

  • make coverage passes with the expanded scope
  • Coveralls report shows coverage data from cmd/, api/, and internal/ packages
  • CI green on GitHub Actions

Extend the go test coverage profile to include ./cmd/..., ./api/...,
and ./internal/... in addition to ./pkg/..., so that unit tests in all
four package trees contribute to the Coveralls report.

Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
@ArangoGutierrez ArangoGutierrez marked this pull request as ready for review March 30, 2026 10:20
@ArangoGutierrez ArangoGutierrez merged commit b69ee1f into NVIDIA:main Mar 30, 2026
17 checks passed
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.

1 participant