Web Application Testing
anthropics/skills
Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.
테스트 더블(Mock, Stub, Spy, Fake) 선택과 효과적인 모킹 전략 가이드. An agent skill from revfactory/harness-100.
$ npx skills add revfactory/harness-100 --skill mocking-strategy -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install revfactory/harness-100 mocking-strategy --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .claude/skills && cp -r skills-src/ko/24-test-automation/.claude/skills/mocking-strategy .claude/skills/mocking-strategy && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "mocking-strategy" agent skill from https://github.com/revfactory/harness-100/tree/main/ko/24-test-automation/.claude/skills/mocking-strategy into .claude/skills/mocking-strategy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mocking-strategy", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/revfactory/harness-100/tree/main/ko/24-test-automation/.claude/skills/mocking-strategyType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add revfactory/harness-100 --skill mocking-strategy -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install revfactory/harness-100 mocking-strategy --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .agents/skills && cp -r skills-src/ko/24-test-automation/.claude/skills/mocking-strategy .agents/skills/mocking-strategy && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mocking-strategy" agent skill from https://github.com/revfactory/harness-100/tree/main/ko/24-test-automation/.claude/skills/mocking-strategy into .agents/skills/mocking-strategy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mocking-strategy", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add revfactory/harness-100 --skill mocking-strategy -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install revfactory/harness-100 mocking-strategy --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/ko/24-test-automation/.claude/skills/mocking-strategy .cursor/skills/mocking-strategy && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mocking-strategy" agent skill from https://github.com/revfactory/harness-100/tree/main/ko/24-test-automation/.claude/skills/mocking-strategy into .cursor/skills/mocking-strategy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mocking-strategy", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/revfactory/harness-100.git --path ko/24-test-automation/.claude/skills/mocking-strategy--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add revfactory/harness-100 --skill mocking-strategy -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install revfactory/harness-100 mocking-strategy --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/ko/24-test-automation/.claude/skills/mocking-strategy .gemini/skills/mocking-strategy && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mocking-strategy" agent skill from https://github.com/revfactory/harness-100/tree/main/ko/24-test-automation/.claude/skills/mocking-strategy into .gemini/skills/mocking-strategy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mocking-strategy", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install revfactory/harness-100 mocking-strategyInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add revfactory/harness-100 --skill mocking-strategy -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .github/skills && cp -r skills-src/ko/24-test-automation/.claude/skills/mocking-strategy .github/skills/mocking-strategy && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mocking-strategy" agent skill from https://github.com/revfactory/harness-100/tree/main/ko/24-test-automation/.claude/skills/mocking-strategy into .github/skills/mocking-strategy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mocking-strategy", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add revfactory/harness-100 --skill mocking-strategy -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install revfactory/harness-100 mocking-strategy --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/ko/24-test-automation/.claude/skills/mocking-strategy .opencode/skills/mocking-strategy && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mocking-strategy" agent skill from https://github.com/revfactory/harness-100/tree/main/ko/24-test-automation/.claude/skills/mocking-strategy into .opencode/skills/mocking-strategy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mocking-strategy", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mocking-strategy테스트 더블(Mock, Stub, Spy, Fake) 선택과 효과적인 모킹 전략 가이드. An agent skill from revfactory/harness-100.
Mocking Strategy is an agent skill from revfactory/harness-100. 테스트 더블(Mock, Stub, Spy, Fake) 선택과 효과적인 모킹 전략 가이드. '모킹', 'Mock', 'Stub', 'Spy', 'Fake', '테스트 더블', '의존성 격리', '외부 서비스 모킹', 'DB 모킹' 등 테스트 격리 전략 수립 시 이 스킬을 사용한다. unit-tester와 integration-tester의 모킹 설계 역량을 강화한다. 단, 테스트 전략 전체 수립이나 CI 연동은 이 스킬의 범위가 아니다.
Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 8e8d35c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python, typescript and java).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
api.pg.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Mocking Strategy loads about 1k tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 183 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 183 words, ~1,044 tokens.
.claude/skills/mocking-strategy/SKILL.md (or your agent's skills folder).의존성을 효과적으로 격리하여 안정적인 테스트를 만드는 방법론.
| 유형 | 목적 | 동작 | 검증 대상 |
|---|---|---|---|
| Dummy | 파라미터 채움 | 아무것도 안 함 | 사용되지 않음 |
| Stub | 고정 응답 제공 | 미리 정의된 값 반환 | 상태(결과값) |
| Spy | 호출 기록 | 실제 동작 + 기록 | 상호작용(호출 횟수/인자) |
| Mock | 기대 동작 정의 | 기대에 맞으면 통과 | 상호작용(호출 순서/인자) |
| Fake | 경량 구현 | 동작하는 간소화 구현 | 상태(통합 수준) |
외부 의존성을 격리해야 한다
├── 응답값만 필요 → Stub
├── 호출 여부/횟수 확인 필요 → Mock 또는 Spy
│ ├── 실제 동작도 필요 → Spy
│ └── 실제 동작 불필요 → Mock
├── 동작하는 경량 구현 필요 → Fake
│ └── 예: InMemoryRepository, FakeEmailSender
└── 그냥 타입만 맞추면 됨 → Dummy# Stub: 고정 데이터 반환
stub_repo = Mock(spec=UserRepository)
stub_repo.find_by_id.return_value = User(id=1, name="테스트")
# Fake: 인메모리 구현
class FakeUserRepository(UserRepository):
def __init__(self):
self._store = {}
def save(self, user):
self._store[user.id] = user
def find_by_id(self, id):
return self._store.get(id)# HTTP 모킹 (responses / httpx_mock)
@responses.activate
def test_payment_api():
responses.add(
responses.POST, "https://api.pg.com/charge",
json={"status": "success", "tx_id": "TX123"},
status=200
)
result = payment_service.charge(10000)
assert result.tx_id == "TX123"
# 타임아웃 / 에러 시뮬레이션
responses.add(
responses.POST, "https://api.pg.com/charge",
body=ConnectionError("timeout")
)class FakeMessageBroker(MessageBroker):
def __init__(self):
self.published = []
def publish(self, topic, message):
self.published.append((topic, message))
def assert_published(self, topic, expected_count=1):
actual = [m for t, m in self.published if t == topic]
assert len(actual) == expected_count# 시간 의존성 주입
class OrderService:
def __init__(self, clock=datetime.now):
self.clock = clock
# 테스트에서 고정 시간
fixed_time = lambda: datetime(2024, 1, 1, 12, 0, 0)
service = OrderService(clock=fixed_time)| 안티패턴 | 문제 | 해결 |
|---|---|---|
| 과도한 모킹 | 구현 상세에 테스트가 결합 | 동작 기반 테스트로 전환 |
| 모킹 사슬 | mock.a.b.c.d() 깊은 모킹 | 디미터 법칙 위반 — 코드 리팩토링 |
| 모킹 지옥 | 모든 것을 Mock | Fake로 대체, 통합 테스트 추가 |
| 반복 설정 | 모든 테스트에서 같은 Mock 설정 | Fixture/Builder 패턴 도입 |
| Mock 검증 과다 | verify(mock, times(1)).method() 남용 | 필수 상호작용만 검증 |
# unittest.mock
from unittest.mock import Mock, patch, MagicMock
# pytest-mock
def test_something(mocker):
mocker.patch('module.Class.method', return_value=42)
# responses (HTTP)
# freezegun (시간)// Jest
jest.mock('./userService');
jest.spyOn(service, 'findUser').mockResolvedValue(mockUser);
// MSW (HTTP — 서비스 워커)
server.use(rest.get('/api/users', (req, res, ctx) => res(ctx.json([]))));
// Sinon (범용)
sinon.stub(db, 'query').resolves([]);// Mockito
@Mock UserRepository repo;
when(repo.findById(1L)).thenReturn(Optional.of(user));
verify(repo, times(1)).save(any(User.class));
// WireMock (HTTP)
// Testcontainers (실제 DB/Redis)# 실제 DB를 도커로 격리 — Fake보다 현실적
@pytest.fixture
def postgres():
with PostgresContainer("postgres:16") as pg:
engine = create_engine(pg.get_connection_url())
yield engine
def test_user_crud(postgres):
# 실제 PostgreSQL에서 테스트
repo = UserRepository(postgres)
repo.save(User(name="test"))
assert repo.find_by_name("test") is not None| 테스트 유형 | DB | 외부 API | 메시지 큐 | 파일 시스템 |
|---|---|---|---|---|
| 단위 테스트 | Stub/Mock | Stub | Mock | Stub |
| 통합 테스트 | Fake/Container | WireMock | Fake | tmpdir |
| E2E 테스트 | 실제 DB | Sandbox API | 실제 큐 | 실제 FS |
© revfactory, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in ko/24-test-automation/.claude/skills/mocking-strategy of revfactory/harness-100.
Open the folder on GitHubat commit 8e8d35c
Mocking Strategy next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Mocking Strategy this skillrevfactory/harness-100 | 1.3k | — | ~1k | Automated safety check: Pass | Apache-2.0 | |
| Web Application Testinganthropics/skills | 180k | 51 repos | ~966 | Automated safety check: Pass | Apache-2.0 | |
| Diagnosing Bugsfossasia/eventyay-interpretation | 1.6k | 31 repos | ~2.1k | Automated safety check: Pass | Apache-2.0 | |
| TDDfossasia/eventyay-interpretation | 1.6k | 28 repos | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| TDD WorkflowhellangleZ/burn-in-cceverywhere-ralph | 112 | 11 repos | ~2.4k | Automated safety check: Pass | None | |
| TDDsanity-io/sanity | 6.4k | 20 repos | ~1k | Automated safety check: Pass | MIT |
anthropics/skills
Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.
fossasia/eventyay-interpretation
Diagnosis loop for hard bugs and performance regressions. An agent skill from fossasia/eventyay-interpretation.
fossasia/eventyay-interpretation
Test-driven development. An agent skill from fossasia/eventyay-interpretation.
hellangleZ/burn-in-cceverywhere-ralph
A skill your agent uses when writing new features, fixing bugs, or refactoring code.
sanity-io/sanity
Test-driven development with red-green-refactor loop. An agent skill from sanity-io/sanity.
Ibrahim-3d/orchestrator-supaconductor
A skill your agent uses when working with Conductor's context-driven development methodology, managing project context artifacts, or understanding the relationship between product.md, tech-stack.md…
revfactory/harness-100
A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.
revfactory/harness-100
Reference for designing how an API reports failures: structured error codes, response shapes, client-friendly messages, an error catalog and retry or fallback advice.
revfactory/harness-100
Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.
revfactory/harness-100
Methodology for systematically designing and generating CLI tool argument parser structures.
revfactory/harness-100
Audience segmentation skill used by the analyst and curator agents.
revfactory/harness-100
Audio storytelling skill used by the podcast scriptwriter and show note editor.
Categories
테스트 더블(Mock, Stub, Spy, Fake) 선택과 효과적인 모킹 전략 가이드. An agent skill from revfactory/harness-100. Mocking Strategy is an agent skill from revfactory/harness-100. 테스트 더블(Mock, Stub, Spy, Fake) 선택과 효과적인 모킹 전략 가이드.
Mocking Strategy fits situations like: testing & QA work in your project.
Run `npx skills add revfactory/harness-100 --skill mocking-strategy -a claude-code`. Or copy the skill folder (ko/24-test-automation/.claude/skills/mocking-strategy in revfactory/harness-100) into .claude/skills/mocking-strategy in your project. Claude Code loads it when a task matches its description.
Run `npx skills add revfactory/harness-100 --skill mocking-strategy -a codex`. Or copy the skill folder (ko/24-test-automation/.claude/skills/mocking-strategy in revfactory/harness-100) into .agents/skills/mocking-strategy in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add revfactory/harness-100 --skill mocking-strategy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mocking-strategy, .gemini/skills/mocking-strategy, .github/skills/mocking-strategy and .opencode/skills/mocking-strategy in your project.
SKILL.md names no scripts, command-line tools or credentials: Mocking Strategy is instructions for the agent only. Our summary lists: Python 3.
SKILL.md names 1 domain. In commands or code: api.pg.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Mocking Strategy is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Mocking Strategy: Web Application Testing (anthropics/skills, 180k stars), Diagnosing Bugs (fossasia/eventyay-interpretation, 1.6k stars), TDD (fossasia/eventyay-interpretation, 1.6k stars) and TDD Workflow (hellangleZ/burn-in-cceverywhere-ralph, 112 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
revfactory (a GitHub user) maintains it in revfactory/harness-100, which has 1,290 GitHub stars. The repository holds 464 skills in this directory. The repository was last updated on March 22, 2026.
Source: revfactory/harness-100 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.