Skip to content
Back to skills

Run Tests

ASecurity

Use when the user wants to run tests for the TodoCalendar project - runs all or specific test schemes via the project's test script

  • 15 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 22, 2026
ai-agentspythonswiftbash

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add sudopark/TodoCalendar --skill run-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Run Tests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Run Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sudopark-run-tests/badge)](https://www.skillsdirectory.com/skills/sudopark-run-tests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: run-tests
description: Use when the user wants to run tests for the TodoCalendar project - runs all or specific test schemes via the project's test script
---

# Run Tests — TodoCalendar

`scripts/run-all-tests.sh`를 실행하여 프로젝트 테스트를 돌린다.

## Usage

```bash
# 전체 테스트
./scripts/run-all-tests.sh

# 특정 스킴만
./scripts/run-all-tests.sh Domain Repository

# destination 오버라이드
DESTINATION='platform=iOS Simulator,name=iPhone 16,OS=18.0' ./scripts/run-all-tests.sh
```

## 시뮬레이터

`DESTINATION` 을 안 주면 `scripts/ensure-test-simulator.sh` 가 **iPhone 16 / iOS 18.0** 을
확보해 UDID 로 넘긴다 — 없으면 만든다. CI(`pr_test.yml`)도 같은 스크립트를 부르므로
로컬과 CI 의 실행 기기가 갈리지 않는다.

기기·OS 를 바꿔야 하면 그 스크립트 한 곳만 고친다. 촬영 기준(snapshot-check §3 — iPhone 17
/ iOS 26.2)과는 별개다 — 스냅샷은 시뮬 상태에 의존해 전용기를 따로 쓴다.

## Available Schemes

스킴 목록의 정본은 `python3 scripts/derive-test-schemes.py --all` 이다. 매니페스트(`Project.swift`)에서 테스트 타겟이 있는 모듈을 도출하므로, 모듈을 추가해도 이 스킬과 스크립트를 고칠 필요가 없다. `<Name>Snapshots`·`<Name>E2E` 스킴은 로컬 전용이라 이 목록에 안 든다.

## Instructions

1. 프로젝트 루트(`/Users/sudo.park/Documents/codebase/TodoCalendar`)에서 실행
2. 인자 없이 실행하면 `--all` 이 낸 스킴 전체를 순차 실행
3. 실패 시 `FAILED` 스킴 목록과 상위 에러 라인 출력
4. 빌드 실패(`BUILD FAILED`)도 FAILED로 판정됨. 스크립트는 `-collect-test-diagnostics never` 로 돈다 — 실패 시 시뮬레이터 진단 수집이 600초를 기다리는 걸 막는다. 이 스크립트 밖에서 로컬 `xcodebuild test` 를 직접 돌릴 때도 붙인다
5. **출력은 항상 로그 파일로 받는다** — `./scripts/run-all-tests.sh A B C > <스크래치패드>/test.log 2>&1` 로 돌리고 `grep -E "error:|✗ |Executed .*failures|Results:|FAILED:|Failing tests:"` 로 요약을 본다. 스킴 하나가 수 분씩 걸려서, `tail` 로 본 출력이 잘려 실패 원인을 놓치면 재실행 비용이 그대로 든다. 실패 원인은 그 로그에서 뽑고, 실패한 스킴을 하나씩 다시 돌리지 않는다. 재실행은 수정을 반영한 뒤 실패 스킴을 묶어 한 번만 한다. 이 로그는 xcpretty 를 거친 출력이라 컴파일 경고 줄이 없다 — 경고·xcodebuild 원문은 결과 끝 `Raw logs:` 줄의 디렉터리에서 본다

## Invoke

```bash
cd /Users/sudo.park/Documents/codebase/TodoCalendar && ./scripts/run-all-tests.sh
```

## 종료 기록 — skill_end

**유저가 이 스킬을 직접 호출한 독립 런에서만** 남긴다. 결과 판정(PASS 스킴 / FAILED 스킴 + 상위 에러 라인)을 보고한 직후 `log-record.py skill_end --name run-tests` (명령·compliance 규칙은 CLAUDE.md §1). 실패가 났어도 판정을 보고했으면 이 스킬의 절차는 끝난 것이다 — 후속 수정은 troubleshoot·implement 소관이다.

**다른 스킬 안에서 도구로 호출된 경우는 기록하지 않는다** — implement 완료 판정의 스킴 실행, 페어 wrap-up의 검증 등. 런을 마무리하는 전이는 호출한 스킬 쪽이고 종료 레코드도 거기서 남는다. 여기서 또 남기면 한 런에 종료가 두 겹으로 쌓여 호출 스킬의 준수 신호와 섞인다.

종속 호출로 뜨는 구조적 누락률은 `usage-thresholds.json`의 `missing_rate_exempt_skills`로 처리한다 — 누락률 숫자를 근거로 위 기록 범위를 넓히지 않는다.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.