mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-07 16:09:43 +02:00
test: add global test setup with screen limits and reach 1337 tests
- Add test/setup.ts with max 10 concurrent screen sessions limiter - Add orphaned Claude/screen process cleanup before/after tests - Add semaphore-based screen slot acquisition for concurrency control - Update vitest.config.ts with setupFiles and fileParallelism: false - Add 16 new test files for comprehensive coverage - Update README badge to show 1337 total tests - Update CLAUDE.md with test setup documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -74,6 +74,8 @@ npx vitest run -t "should create session" # By pattern
|
||||
# Tests mock PTY - no real Claude CLI spawned
|
||||
# Test timeout: 30s (configured in vitest.config.ts)
|
||||
# Global test utilities (describe/it/expect) available without imports (globals: true)
|
||||
# Tests run sequentially (fileParallelism: false) to respect screen session limits
|
||||
# Global setup (test/setup.ts) enforces max 10 concurrent screens + orphan cleanup
|
||||
|
||||
# TypeScript checking
|
||||
npm run typecheck # Type check without building (or: npx tsc --noEmit)
|
||||
|
||||
Reference in New Issue
Block a user