testing

📁 nth5693/gemini-kit 📅 8 days ago
4
总安装量
3
周安装量
#49399
全站排名
安装命令
npx skills add https://github.com/nth5693/gemini-kit --skill testing

Agent 安装分布

opencode 3
gemini-cli 3
github-copilot 3
codex 3
kimi-cli 3
amp 3

Skill 文档

Testing Skill

Overview

Guidance and templates for testing in {PROJECT_NAME}. Covers React Component testing (Vitest/RTL) and Backend testing (Python/Pytest).

When To Use

  • Writing new code: Every new feature needs tests.
  • Fixing bugs: Create a reproduction test first.
  • Refactoring: Ensure green tests before and after.

Instrumentation

# Log usage when using this skill
./scripts/log-skill.sh "testing" "manual" "$$"

What do you want to do?

  1. Test React Components → workflows/run-frontend-tests.md
  2. Test Backend/API → workflows/run-backend-tests.md
  3. Write a New Test → templates/component-test.template.tsx
  4. Fix Test Failures → references/vitest-patterns.md

Quick Commands

# Frontend (Unit/Integration)
npm test
npm test -- -t "ComponentName"  # Run specific test

# Backend (API)
pytest
pytest -k "test_name"