Back to list
motlin

testing

by motlin

A Claude Code skill for tracking and completing tasks from a markdown task list

2🍴 3📅 Jan 24, 2026

SKILL.md


name: testing description: Testing guidelines. Use when Writing, Editing, or reviewing tests.

Testing Guidelines

Test Naming

  • Test names should not include the word "test"

Assertions

  • Test assertions should be strict
    • Bad: expect(content).to.include('valid-content')
    • Better: expect(content).to.equal({ key: 'valid-content' })
    • Best: expect(content).to.deep.equal({ key: 'valid-content' })

Mocking

  • Use mocking as a last resort
    • Don't mock a database, if it's possible to use an in-memory fake implementation instead
    • Don't mock a larger API if we can mock a smaller API that it delegates to
    • Prefer frameworks that record/replay network traffic over mocking
    • Don't mock our own code
  • Don't overuse the word "mock"
    • Mocking means replacing behavior, by replacing method or function bodies, using a mocking framework
    • In other cases use the words "fake" or "example"

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon