Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use when writing or running tests across languages and frameworks (Vitest, Jest, pytest, XCTest, Playwright), including TDD workflow, coverage, and test patterns.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Write and run tests across languages and frameworks.
| Language | Unit Tests | Integration | E2E |
|---|---|---|---|
| TypeScript/JS | Vitest (preferred), Jest | Supertest | Playwright |
| Python | pytest | pytest + httpx | Playwright |
| Swift | XCTest | XCTest | XCUITest |
npm install -D vitest @testing-library/react @testing-library/jest-dom
// vitest.config.ts - minimal configuration for non-DOM tests
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
},
})
Vitest uses the Node environment by default. For the React component example below or other DOM tests, retain the repository's configured DOM environment; select environment: 'jsdom' only when the target project already supplies a compatible jsdom dependency. Add setupFiles only for an existing setup file with the required initialization and installed imports. The minimal configuration above does not create tests/setup.ts or provide a DOM environment.
npx vitest # Watch mode
npx vitest run # Single run
npx vitest --coverage # With coverage
npm install -D jest @types/jest ts-jest
npx jest # Run all
npx jest --watch # Watch mode
npx jest --coverage # With coverage
npx jest path/to/test # Single file
uv add --dev pytest pytest-cov pytest-asyncio httpx
uv run pytest # Run all
uv run pytest -v # Verbose
uv run pytest -x # Stop on first failure
uv run pytest --cov=app # With coverage
uv run pytest tests/test_api.py -k "test_login" # Specific test
uv run pytest --tb=short # Short tracebacks
swift test # Run all tests
swift test --filter MyTests # Specific test suite
swift test --parallel # Parallel execution
npm install -D @playwright/test
npx playwright install
npx playwright test # Run all
npx playwright test --headed # With browser visible
npx playwright test --debug # Debug mode
npx playwright test --project=chromium # Specific browser
npx playwright show-report # View HTML report
Legacy attribution: test-runner by cmanfre7. The tracked package does not retain the source URL, revision, digest, license, or cited release-only _meta.json; this attribution remains unverified.
test('calculates total with tax', () => {
// Arrange
const cart = new Cart([{ price: 100, qty: 2 }]);
// Act
const total = cart.totalWithTax(0.08);
// Assert
expect(total).toBe(216);
});
test('fetches user data', async () => {
const user = await getUser('123');
expect(user.name).toBe('Colt');
});
import { vi } from 'vitest';
const mockFetch = vi.fn().mockResolvedValue({
json: () => Promise.resolve({ id: 1, name: 'Test' }),
});
vi.stubGlobal('fetch', mockFetch);
import pytest
from httpx import ASGITransport, AsyncClient
from app.main import app
@pytest.mark.asyncio
async def test_get_users():
transport = ASGITransport(app=app)
async with AsyncClient(transport=transport, base_url="http://test") as client:
response = await client.get("/users")
assert response.status_code == 200
assert isinstance(response.json(), list)
import { render, screen, fireEvent } from '@testing-library/react';
import { Button } from './Button';
test('calls onClick when clicked', () => {
const handleClick = vi.fn();
render(<Button onClick={handleClick}>Click me</Button>);
fireEvent.click(screen.getByText('Click me'));
expect(handleClick).toHaveBeenCalledOnce();
});
# JavaScript/TypeScript
npx vitest --coverage # Vitest (uses v8 or istanbul)
npx jest --coverage # Jest
# Python
uv run pytest --cov=app --cov-report=html # HTML report
uv run pytest --cov=app --cov-report=term # Terminal output
uv run pytest --cov=app --cov-fail-under=80 # Fail if < 80%
# View HTML coverage report
open coverage/index.html # macOS
open htmlcov/index.html # Python
Always test:
Don't bother testing:
For Vitest work, inspect the repo's package manager, vitest.config.*, test environment, setup files, coverage provider, and UI/component test stack before adding commands. Prefer the repo's existing npm test, npm run test, or npm run test:unit scripts when present.
Run inexpensive checks and focused tests while editing. One successful full suite for the final candidate is sufficient; authoritative CI may provide it. Do not run another local suite or repeat a successful suite for the same tested inputs just because a task moves from PR to main or publication. Record the commit, environment, command/workflow, and result; invalidate evidence only when relevant inputs change. Bound long jobs, preserve successful jobs when retrying an understood failure, and stop automatic retries on an unexplained failure. For an order-dependent failure, reproduce the smallest ordered test pair and restore every module binding changed by a mock, including copied bindings. Keep ordinary fixture deadlines large enough for cold imports on hosted runners; test intentional deadline expiry separately with an explicit short budget. Complete source changes and the release record before generating final docs.
LocalSetup's hosted implementation uses eight isolated Python shards with an all-shards success gate and exact-commit Actions evidence. The publishing workflow checks that evidence before building instead of running the full suite again. See repository maintenance.
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.