smithery.ai

testing-qa

Usa esta skill para escribir y ejecutar tests (unitarios, integración, e2e) en el backend de ObsidianRAG usando pytest y mocks.

First seen Mar 25, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,123 B
  • docs SUMMARY.md 146 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Testing & QA

Cuándo usar esta skill

  • Cuando escribas código nuevo y necesites verificarlo.
  • Cuando reportes o arregles bugs.
  • Para asegurar la calidad antes de una release.

Cómo usar esta skill

1. Ejecutar Tests

cd backend
uv run pytest tests/ -v
# Solo integración
uv run pytest tests/ -m "integration"

2. Estructura de Tests

  • tests/conftest.py: Fixtures compartidas (mockvault, mocksettings).
  • tests/test_server.py: Tests de API FastAPI.
  • tests/testqaagent.py: Tests de lógica RAG (mockear LLM).

3. Guías de Mocking

  • Ollama/LLM: SIEMPRE mockear en tests unitarios. Usa mock_ollama fixture.
  • ChromaDB: Mockear para unitarios, usar instance real en tmp_path para integración.
  • File System: Usa tmp_path fixture de pytest.

4. Cobertura

El objetivo es >80% en módulos core.

uv run pytest tests/ --cov=obsidianrag