Skip to main content
ClaudeWave
Skill353 repo starsupdated 3mo ago

testing

This testing skill provides unified guidance and templates for implementing tests across both frontend and backend environments within a project. It includes patterns for React component testing using Vitest and React Testing Library, plus Python backend testing with Pytest, offering quick commands and structured workflows for writing new tests, fixing bugs, and ensuring code quality during refactoring.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/nth5693/gemini-kit /tmp/testing && cp -r /tmp/testing/skills/testing ~/.claude/skills/testing
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# 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

```bash
# 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

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

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