LLM Skills
~/catalogue/tests et qualité//test
Tests et qualitésource GitHub

Exécuteur de tests

/test

Crée, exécute et améliore les tests pour valider les changements.

davila7davila7
30.6k
22 mai 2026
MIT License
// contenu du skill

Test Runner

Run Python tests with pytest, unittest, or other testing frameworks.

Purpose

This command helps you run Python tests effectively with proper configuration and reporting.

Usage

/test

What this command does

  1. Detects test framework (pytest, unittest, nose2)
  2. Runs appropriate tests with proper configuration
  3. Provides coverage reporting if available
  4. Shows clear test results with failure details

Example Commands

pytest (recommended)

bash
# Run all tests
pytest

# Run with coverage
pytest --cov=src --cov-report=html

# Run specific test file
pytest tests/test_models.py

# Run with verbose output
pytest -v

# Run tests matching pattern
pytest -k "test_user"

unittest

bash
# Run all tests
python -m unittest discover

# Run specific test file
python -m unittest tests.test_models

# Run with verbose output
python -m unittest -v

Django tests

bash
# Run all Django tests
python manage.py test

# Run specific app tests
python manage.py test myapp

# Run with coverage
coverage run --source='.' manage.py test
coverage report

Best Practices

  • Write tests for all critical functionality
  • Use descriptive test names
  • Keep tests isolated and independent
  • Mock external dependencies
  • Aim for high test coverage (80%+)
// source originale publique
davila7/claude-code-templates
/.claude/commands/test.md
Licence : MIT License
Projet indépendant, non affilié à Anthropic. Ce skill reste la propriété de son auteur original.
// installer ce skill
Collez cette commande dans votre terminal à la racine de votre projet :
mkdir -p .claude/commands && curl -o ".claude/commands/test.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/commands/test.md"
Ensuite dans Claude Code, tapez /test pour l'activer.
open_in_newVoir la source originale
// sauvegarder
Sauvegarde disponible après connexion.
loginSe connecter pour sauvegarder
// informations
Créateurdavila7
Étoiles 30.6k
LicenceMIT License
Mis à jour22 mai 2026
Format.md
AccèsGratuit
// similaires

Skills Tests et qualité

Voir toutarrow_forward