agentsclimarketplace

Testing strategy

Skill ComeOnOliver/skillshub/skills/aiskillstore/marketplace/doyajin174/testing-strategy

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.

Install
npx -y skills add ComeOnOliver/skillshub --skill testing-strategy

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Comprehensive testing workflow combining TDD, real implementations (no mocking), and E2E testing. Use when implementing features, writing tests, or setting up test infrastructure.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

2.1 KB, as published. Nobody here has run it

Testing Strategy

TDD와 μ‹€μ œ κ΅¬ν˜„ 기반 ν…ŒμŠ€νŠΈλ₯Ό κ²°ν•©ν•œ 톡합 ν…ŒμŠ€νŠΈ μŠ€ν‚¬μž…λ‹ˆλ‹€.

Iron Law

"NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST"

RED-GREEN-REFACTOR Cycle

1. RED - μ‹€νŒ¨ν•˜λŠ” ν…ŒμŠ€νŠΈ μž‘μ„±

- μ›ν•˜λŠ” λ™μž‘μ„ λ³΄μ—¬μ£ΌλŠ” μ΅œμ†Œν•œμ˜ ν…ŒμŠ€νŠΈ μž‘μ„±
- ν…ŒμŠ€νŠΈκ°€ μ‹€νŒ¨ν•˜λŠ”μ§€ λ°˜λ“œμ‹œ 확인

2. GREEN - ν…ŒμŠ€νŠΈ ν†΅κ³Όμ‹œν‚€κΈ°

- ν…ŒμŠ€νŠΈλ₯Ό ν†΅κ³Όμ‹œν‚€λŠ” κ°€μž₯ λ‹¨μˆœν•œ μ½”λ“œ μž‘μ„±
- μ™„λ²½ν•œ μ½”λ“œ X, λ™μž‘ν•˜λŠ” μ½”λ“œ O

3. REFACTOR - λ¦¬νŒ©ν† λ§

- μ½”λ“œ 정리 (쀑볡 제거, λͺ…λͺ… κ°œμ„ )
- ν…ŒμŠ€νŠΈκ°€ 계속 ν†΅κ³Όν•˜λŠ”μ§€ 확인

No Mocking Policy

μ‹€μ œ κ΅¬ν˜„μ„ ν…ŒμŠ€νŠΈν•˜λΌ

❌ κΈˆμ§€

jest.mock('./database');
jest.mock('./api');

βœ… ν—ˆμš©

// μ‹€μ œ ν…ŒμŠ€νŠΈ DB λ˜λŠ” 인메λͺ¨λ¦¬ DB μ‚¬μš©
const db = await createTestDatabase();

// MSW둜 μ‹€μ œ HTTP 계측 ν…ŒμŠ€νŠΈ
const server = setupServer(
  rest.get('/api/users', (req, res, ctx) => {
    return res(ctx.json([{ id: 1, name: 'Test' }]));
  })
);

E2E Testing (Playwright)

test('user can complete checkout', async ({ page }) => {
  await page.goto('/products');
  await page.click('[data-testid="add-to-cart"]');
  await page.click('[data-testid="checkout"]');
  await expect(page.locator('.confirmation')).toBeVisible();
});

Test Categories

μœ ν˜•λ²”μœ„λ„κ΅¬
Unitν•¨μˆ˜/클래슀Vitest, Jest
Integrationλͺ¨λ“ˆ κ°„ μ—°λ™μ‹€μ œ DB, MSW
E2E전체 μ‚¬μš©μž 흐름Playwright

Checklist

  • λͺ¨λ“  ν•¨μˆ˜κ°€ ν…ŒμŠ€νŠΈλ¨
  • ν…ŒμŠ€νŠΈκ°€ λ¨Όμ € μ‹€νŒ¨ν•˜λŠ” 것을 확인
  • Mock μ‚¬μš© μ—†μŒ (MSW ν—ˆμš©)
  • E2E둜 핡심 흐름 검증

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.