Skip to content

fix: return missing reference error in copy command#41

Merged
shikaan merged 9 commits intomainfrom
chore/32-better-testing
Feb 7, 2026
Merged

fix: return missing reference error in copy command#41
shikaan merged 9 commits intomainfrom
chore/32-better-testing

Conversation

@shikaan
Copy link
Copy Markdown
Owner

@shikaan shikaan commented Feb 6, 2026

This change introduces richer e2e coverage of the keydex binary, with a battery of automated e2e TUI tests and CLI tests.

They are run along with unit tests because the whole suite takes ~5s.

Tests with side effects (i.e., file I/O and clipboard) are still to be done manually, and the list of manual tests has been reduced to a battery of smoke tests.

This closes #32

@shikaan shikaan marked this pull request as ready for review February 7, 2026 13:18
@shikaan shikaan requested a review from Copilot February 7, 2026 13:18
@shikaan shikaan changed the title chore: 32 automate e2e testing fix: retturn missing reference error in copy command Feb 7, 2026
@shikaan shikaan changed the title fix: retturn missing reference error in copy command fix: return missing reference error in copy command Feb 7, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds automated end-to-end coverage for the keydex binary (TUI + CLI) and adjusts the codebase/docs to support running these tests in CI alongside unit tests.

Changes:

  • Introduces extensive TUI e2e tests using a tcell simulation screen and CLI integration tests against the built binary.
  • Refactors TUI startup to allow dependency injection of a screen for tests (Setup, SetScreen) and tweaks layout behavior (Resize on content set).
  • Updates CLI behavior (copy reference validation, logging) and developer tooling/docs (Makefile targets, CONTRIBUTING smoke tests).

Reviewed changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
tui/layout.go Triggers a resize after content changes to keep layout consistent in TUI/e2e runs.
tui/app.go Enables screen injection + test setup path for simulation-based TUI e2e tests.
test/tui_test.go Adds simulation-driven TUI e2e suite covering core flows (create/edit/delete/read-only/list).
test/cli_test.go Adds CLI integration tests that execute the built binary against a fixture database.
cmd/list.go Adjusts logging around database/key selection during list command execution.
cmd/copy.go Adjusts logging and adds explicit “missing reference” handling for copy command.
Makefile Makes make test build the binary first; adds clean target.
LICENSE Updates copyright year.
CONTRIBUTING.md Replaces long manual test checklist with focused smoke/side-effect checks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shikaan shikaan merged commit e4f88af into main Feb 7, 2026
1 check passed
@shikaan shikaan deleted the chore/32-better-testing branch February 7, 2026 13:34
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.

E2E automated testing

2 participants