Skip to content

Conversation

@wilmoore
Copy link
Owner

Summary

  • Add Vitest testing framework with three-tier testing strategy (unit, integration, E2E)
  • Add GitHub Actions CI pipeline with matrix testing on Ubuntu/macOS and Node.js 18/20/22
  • Add test helpers for CLI execution, mock servers, and temp project setup
  • Bump version to 2.1.0

Test plan

  • All 59 tests pass locally
  • CI pipeline runs successfully on GitHub Actions
  • Coverage reporting integrates with Codecov

Related

  • ADR-002: Vitest Testing Strategy (doc/decisions/002-vitest-testing-strategy.md)

- Add Vitest testing framework with three-tier strategy:
  - Unit tests for pure functions (sanitizeServerName, parseArguments, etc.)
  - Integration tests for config loading and health checks
  - E2E tests for CLI commands and workflows
- Add GitHub Actions CI pipeline with matrix testing (Ubuntu/macOS, Node 18/20/22)
- Add test helpers: CLI runner, mock HTTP server, temp project setup
- Add ADR-002 documenting the testing strategy decision
- Bump version to 2.1.0
Use matching versions (^3.2.4) for vitest and @vitest/coverage-v8 to fix
npm dependency resolution errors in CI.
Tests now create .dev/ directory before attempting file operations,
fixing failures in CI where the directory doesn't exist.
@wilmoore wilmoore merged commit b55f81b into main Jan 13, 2026
7 checks passed
@wilmoore wilmoore deleted the feature/automated-testing-strategy branch January 13, 2026 00:45
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