Skip to content

Add comprehensive tests and run tests in lint#8

Merged
andyrewlee merged 2 commits intomainfrom
tests
Jan 1, 2026
Merged

Add comprehensive tests and run tests in lint#8
andyrewlee merged 2 commits intomainfrom
tests

Conversation

@andyrewlee
Copy link
Owner

Summary

  • expand unit/integration coverage for core user-story flows (config/metadata/git/worktrees/scripts/pty/layout/dashboard)
  • make lint run tests first to keep coverage enforced

Testing

  • make lint (includes go test ./...)

andyrewlee and others added 2 commits December 31, 2025 16:09
- Split TestGitRepositoryOps into granular subtests for each operation
- Add skipIfNoGit helper to skip tests when git is not installed
- Add error case tests for malformed JSON configs and non-existent paths
- Increase dashboard test coverage from 14% to 38% with cursor, focus,
  and handler tests
- Add tests for watcher edge cases (double watch, unwatch non-watched)

Coverage improvements:
- git: 74.6% → 78.8%
- dashboard: 14.0% → 38.0%
- data: 87.6% → 88.8%
- process: 83.3% → 84.2%

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@andyrewlee andyrewlee merged commit 9027c14 into main Jan 1, 2026
1 check passed
@andyrewlee andyrewlee deleted the tests branch January 1, 2026 05:01
andyrewlee added a commit that referenced this pull request Jan 8, 2026
* Add comprehensive tests and run tests in lint

* Improve test quality: split tests, add error cases, increase coverage

- Split TestGitRepositoryOps into granular subtests for each operation
- Add skipIfNoGit helper to skip tests when git is not installed
- Add error case tests for malformed JSON configs and non-existent paths
- Increase dashboard test coverage from 14% to 38% with cursor, focus,
  and handler tests
- Add tests for watcher edge cases (double watch, unwatch non-watched)

Coverage improvements:
- git: 74.6% → 78.8%
- dashboard: 14.0% → 38.0%
- data: 87.6% → 88.8%
- process: 83.3% → 84.2%

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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