Skip to content

Conversation

@drlucaa
Copy link
Member

@drlucaa drlucaa commented Jan 24, 2026

Closes #64

- Add github.com/rogpeppe/go-internal v1.14.1 dependency
- Create cli/e2e/e2e_test.go with TestMain and testscript runner
- Build same binary once in TestMain for test reuse
- Configure isolated HOME and PATH for hermetic testing
- Set NO_COLOR=1 and CI=true for deterministic output
- Use e2e build tag to keep tests opt-in
- Add basic_execution.txtar for simple task execution validation
- Add dependency_order.txtar for topological ordering verification
- Add cache_hit.txtar and cache_invalidation.txtar for cache behavior
- Add hermetic_env.txtar for environment variable isolation testing
- Add workspace.txtar for multi-project workspace support
- Add clean.txtar for cache cleanup command validation
- Add error scenarios: invalid_config, missing_file, circular_deps,
unknown_task
- Add nix integration tests: tool_resolution, hermetic environments
- Add no_cache_flag.txtar for --no-cache flag validation
- Fix output stream expectations: status messages go to stderr, command
  output goes to stdout
- Update error message patterns to match structured logging format
- Adjust workspace test to remove unimplemented cross-project
  dependencies
- Simplify Nix integration tests and mark as skipped pending full
  implementation
- Remove overly strict cache directory assertions in clean test
- Update error scenario expectations to match actual error handling
@codecov
Copy link

codecov bot commented Jan 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@drlucaa drlucaa merged commit af04f97 into main Jan 24, 2026
6 checks passed
@drlucaa drlucaa deleted the feat/64-e2e-tests branch January 24, 2026 16:47
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.

feat: Implement E2E Testing Suite with testscript

2 participants