Skip to main content

timer-testing-patterns

Efficient patterns for testing time-based game features, including timer manipulation and countdown verification. Use when testing timer functionality, countdown features, or time-based game mechanics. Never wait for natural countdown - use test seam setTimer() commands instead.

소스 정보

저장소
pmarashian/cursor-agent-skills
최근 소스 활동
2026년 2월 13일 19:51
감지된 SKILL.md 언어
영어
스타
2
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
timer-testing-patterns
description
Efficient patterns for testing time-based game features, including timer manipulation and countdown verification. Use when testing timer functionality, countdown features, or time-based game mechanics. Never wait for natural countdown - use test seam setTimer() commands instead.
# Timer Testing Patterns ## Overview Efficiently test timer functionality without waiting for natural countdown. Use test seam commands to manipulate timers directly. ## Timer Manipulation **Use test seam commands**: - `setTimer(seconds)` - Set timer to specific value - `fastForwardTimer(seconds)` - Decrease timer by specified amount - `triggerGameOver()` - Force game over condition See `references/timer-commands.md` for detailed command usage. ## Testing Workflow 1. Use test seam to set timer to low value (e.g., 3 seconds) 2. Start game 3. Wait for timer to expire 4. Verify game over/level complete behavior 5. Test boundary conditions (9, 10, 11 seconds for color changes) ## Avoid Natural Countdown **Never wait for natural countdown** (e.g., 60 seconds) **Always use timer manipulation** for testing: - Set timer to low value for quick testing - Test boundary conditions efficiently - Verify both positive (timer works) and negative (timer expires) cases ## Test Seam Implementation See `references/test-seam-implementation.md` for code examples of adding timer commands to test seam. ## Resources - `references/timer-commands.md` - setTimer(), fastForwardTimer(), triggerGameOver() - `references/test-seam-implementation.md` - Code examples for adding timer commands
GitHub에서 보기