Skip to content

feat(test): add comprehensive integration tests - #18

Merged
jmgilman merged 1 commit into
masterfrom
feat/integration-tests
Jan 23, 2026
Merged

jmgilman merged 1 commit into
masterfrom
feat/integration-tests

Conversation

@jmgilman

Copy link
Copy Markdown
Contributor

Summary

  • Add integration test infrastructure using testcontainers-go and go-testscript
  • Add 24 test scripts covering all CLI commands (push, pull, inspect, ls, tree, cat, cp, tag, alias, config, cache, error handling, JSON output)
  • Add --plain-http global flag for testing with local registries
  • Add dedicated GitHub Actions workflow for integration tests
  • Add test-integration recipe to justfile

Test plan

  • All 24 integration tests pass locally
  • CI workflow validates linting and unit tests
  • Integration workflow runs successfully on PR

🤖 Generated with Claude Code

Add integration test infrastructure using testcontainers-go and
go-testscript for CLI testing with a real OCI registry.

Changes:
- Add integration/ directory with testscript-based tests
- Add 24 test scripts covering all CLI commands
- Add --plain-http flag for testing with local registries
- Add cmd/client.go helper for client creation
- Add GitHub Actions workflow for integration tests
- Update justfile with test-integration recipe

The tests use a registry:2 container managed by testcontainers,
with unique tags per test for isolation. Test data is embedded
via go:embed for portability.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jmgilman
jmgilman merged commit 856b936 into master Jan 23, 2026
6 checks passed
@jmgilman
jmgilman deleted the feat/integration-tests branch January 23, 2026 22:33
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