사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/krishnakanthb13/antigravity_global_skills --skill test_runner시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
Test Runner
Use this skill to execute tests and understand why they might be failing.
Inputs
- Test Command: (Optional) Override defaults (e.g.,
npm test -- -t "search"). - Scope: Specific file or all tests.
Tooling Strategy
- Use
run_commandto execute tests. - Use
view_fileto read failure logs or source code if tests fail.
Workflow
1. Execution
- Command: Run the appropriate test command for the environment (e.g.,
npm test,pytest,python -m unittest). - Scope: Run all tests by default, or target a specific file if requested.
2. Analysis
- Pass: If all green, celebrate! 🟢
- Fail: If red 🔴, analyze the output:
- StackTrace: Where exactly did it blow up?
- Assertion: What was expected vs. what was received?
- Diff: Visual comparison of the data mismatch.
3. Recommendation
- If tests failed, provide a summary of the failure.
- Suggest potential fixes or point to the line of code causing the regression.
4. Integrity
- Ensure that the testing process didn't leave behind artifacts (temp files, database entries) unless intended for debugging.
E2E Testing Patterns (Advanced)
When running or debugging End-to-End (E2E) tests:
- Isolation: Ensure tests run in complete isolation (dedicated test accounts/data). Do not run destructive tests against production.
- Flakiness: Debug flaky tests by checking for race conditions, unstable DOM selectors, or implicit waits rather than explicit waits.
- Tracing: Utilize artifacts (screenshots, video recordings, network traces) captured during CI/CD failures to reconstruct the test state.
- Critical Journeys: Focus E2E tests on critical user journeys rather than exhaustive edge-case testing (which belongs in unit tests).