← Back to list

testing
by bellini666
My dotfiles
⭐ 17🍴 1📅 Jan 22, 2026
SKILL.md
name: testing description: This skill should be used when the user asks to "write tests", "add tests", "create test cases", or when implementing tests as part of a feature or bug fix task.
Writing Tests
Rules
- Reuse test files - Add tests to existing files when appropriate
- Use parametrized tests - Group cases with same expected behavior via
@pytest.mark.parametrize - No obvious comments - Code should be self-explanatory
- Follow existing style - Match patterns in the existing test suite
- Imports at module level - Only import inside functions when absolutely necessary
- Reuse fixtures - Use existing fixtures; create new ones only when needed
Test Naming
Name tests using the pattern: test_<what>_<condition>_<outcome>
Examples:
test_login_valid_credentials_succeedstest_process_payment_insufficient_funds_raises_errortest_parse_json_invalid_input_returns_none
Test Structure
- Test all paths - Happy path, edge cases, and error conditions
- One assertion focus - Each test should verify one specific behavior
- Arrange-Act-Assert - Set up, execute, verify (AAA pattern)
Common Pytest Features
- Fixtures:
@pytest.fixturefor shared setup/teardown - Marks:
@pytest.mark.skip,@pytest.mark.slow,@pytest.mark.integration - Mocking:
monkeypatchfixture for patching - Temp files:
tmp_pathfixture for file system tests - Assertions: Use
pytest.raises(ExceptionType)for exception testing
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon



