Back to list
Vasallo94

testing-qa

by Vasallo94

RAG system to query your Obsidian notes using LangGraph and local LLMs (Ollama)

6🍴 1📅 Jan 24, 2026

SKILL.md


name: testing-qa description: > Usa esta skill para escribir y ejecutar tests (unitarios, integración, e2e) en el backend de ObsidianRAG usando pytest y mocks. tools: ['read', 'edit', 'run_command']

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 (mock_vault, mock_settings).
  • tests/test_server.py: Tests de API FastAPI.
  • tests/test_qa_agent.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

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+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