Skip to content

Conversation

@brandonkachen
Copy link
Collaborator

No description provided.

- Fix server spawning to use bun next dev -p PORT directly (bun doesnt expand shell variables in npm scripts)
- Improve server cleanup to kill child processes on all relevant ports
- Add better debugging to waitForServerReady with attempt counts
- Fix max mode test assertion to be more robust
- Add documentation about server spawning coupling with web dev script
- Add inline comment in web/package.json dev script warning about E2E coupling
- Add Additional Slash Commands tests (/init, /bash, /feedback, /referral, /image, /exit)
- Add CLI Flags tests (--help, --version, --agent, invalid flags)
- Add Keyboard Interactions tests (Ctrl+C, @mentions, backspace, escape)
- Add Error Scenarios tests (low credits, invalid commands, edge cases)

Total: 30 E2E tests covering CLI functionality
The previous implementation used `docker run --network host` which
does not work on Docker Desktop for macOS/Windows. Now uses host
pg_isready (if available) with psql fallback for cross-platform support.
E2E tests require Docker and should not run in the standard CI
test jobs. Added ! -path "*e2e*" to the find command.
- Add root-level TESTING.md with test taxonomy for CLI/Web/SDK
- Rename tuistory tests to descriptive names (full-stack.test.ts, cli-ui.test.ts)
- Delete redundant tests (e2e-cli, integration-tmux, tmux-poc)
- Add web/src/__tests__/e2e/README.md for Playwright docs
- Update all READMEs with correct file references
- Remove test:tmux-poc script from cli/package.json
Tests should fail when API key is missing, not silently skip.
Replace describe.skipIf with throwing errors when prerequisites are not met in CLI UI and E2E tests. This ensures CI fails immediately with clear error messages instead of silently skipping tests.
- Remove skipIf/shouldSkip from e2e and CLI UI tests (throw errors instead)
- Move unit tests to cli/src/__tests__/unit/
- Move cli-ui.test.ts to cli/src/__tests__/e2e/
- Fix import paths in moved files
- Add flushAnalyticsThen() helper to simplify exit flow callbacks
- Refactor command-registry and use-exit-handler to use new helper
- Fix logger to always report errors/analytics even when file logs disabled
- Update docs: fix markdown escaping and use E2E_CONTAINER_NAME env var
@brandonkachen brandonkachen deleted the tuistory-test branch December 10, 2025 23:51
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.

2 participants