Skip to content

Claude/plan testing strategy orrt s#1033

Merged
braedonsaunders merged 11 commits into
mainfrom
claude/plan-testing-strategy-orrtS
Jan 26, 2026
Merged

Claude/plan testing strategy orrt s#1033
braedonsaunders merged 11 commits into
mainfrom
claude/plan-testing-strategy-orrtS

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner

No description provided.

claude added 11 commits January 25, 2026 14:43
Add comprehensive test coverage for:
- PerformanceMonitor: formatBytes, grades, collection toggle, snapshots,
  system timings, network metrics, and history methods
- ConnectionCode: parse error handling, error class, input normalization
- Network types: command ID generation, counter reset, lobby code generation

These tests focus on modules with clean dependency chains that work with
the CommonJS test compilation setup.
- Replace Node.js test runner with Vitest for ES module support
- Convert all existing tests to Vitest syntax
- Add Entity and World (ECS) tests with archetype query coverage
- Add BehaviorTree tests (composite, decorator, action nodes)
- Add DesyncDetection utility tests
- Total: 185 tests across 14 test files
- Coverage summary with module breakdown
- Test file inventory (185 tests across 14 files)
- Prioritized checklist of 60+ modules to test
- Testing guidelines and best practices
- Coverage goals and CI integration notes
- SystemRegistry tests (23 tests, 88% coverage)
  - Dependency registration and validation
  - Topological sort for execution order
  - Circular dependency detection
  - Conditional system creation

- Component tests:
  - Health (38 tests, 94% coverage): damage, armor, shields, regen
  - Transform (20 tests, 100% coverage): position, rotation, distance
  - Velocity (18 tests, 100% coverage): magnitude, normalize, scale

Total: 284 tests across 18 test files
- Add 96 tests for Unit component covering movement, combat, commands,
  patrol, worker functionality, transform/cloak/submarine/transport
  mechanics, healing/repair, and buff systems
- Add 16 tests for Selectable component covering selection state,
  control groups, and visual properties
- Add 23 tests for pathfinding SpatialGrid covering insert/remove,
  query by radius/rect, walkability, and cell operations
- Update TESTING.md with new test inventory (419 total tests)

Total tests: 419 across 21 test files
- Add 99 tests for Building component covering construction lifecycle,
  production queues, addon mechanics, lift-off/landing, supply depot
  lowering, and turret attack capabilities
- Add 24 tests for Projectile component covering all behavior types
  (homing, ballistic, linear), damage types, trail types, and splash
  mechanics
- Update TESTING.md with new test inventory (542 total tests)

Total tests: 542 across 23 test files
- Add 38 tests for Resource component covering mineral/vespene types,
  extractor requirements, gatherer management, saturation tracking,
  and worker optimization constants
- Add 48 tests for Ability component covering energy management,
  cooldowns, ability usage, and all DOMINION_ABILITIES presets
- Update TESTING.md with new test inventory (628 total tests)

Total tests: 628 across 25 test files
- Add 83 tests for Wall component covering gate mechanics (open/close/
  lock/auto), turret mounting, upgrades (shielded/repair_drone/weapon),
  shield regeneration and damage absorption, and connection management
  for wall mesh appearance
- Update TESTING.md with new test inventory (711 total tests)

All components in Priority 3 checklist now have test coverage.

Total tests: 711 across 26 test files
- Add 51 tests for combat config (damage types, armor types, multipliers)
- Add 42 tests for projectile types (behaviors, speeds, trail types)
- Tests cover data-driven combat calculations used by CombatSystem
- Add 34 tests for formations (positions, sorting, configuration)
- Add 55 tests for unit categories (assignments, subcategories, priorities)
- Add 45 tests for resource types (gather rates, saturation, starting bags)
- Add 28 tests for VectorPool utility (acquire/release, normalize, clamp)
- Total test count: 966 tests
- Add 49 tests for walls (definitions, line calculation, connection types)
- Add 38 tests for AI config (conditions, rules, utility scoring)
- Total test count: 1053 tests
@vercel

vercel Bot commented Jan 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
voidstrike Ready Ready Preview, Comment Jan 26, 2026 0:02am

Request Review

@braedonsaunders braedonsaunders merged commit 17034a1 into main Jan 26, 2026
5 of 6 checks passed
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