Skip to content
Back to skills

Run Tests

ASecurity

Correr tests del backend de PROSEGUIT (unitarios e integración). Usa despues de hacer cambios de codigo para verificar que todo funciona.

  • 2 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 9, 2026
businessgobashsqlfrontendbackend

Works with

  • cli

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add ramiroquesada/PROSEGUIT --skill run-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Run Tests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Run Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ramiroquesada-run-tests/badge)](https://www.skillsdirectory.com/skills/ramiroquesada-run-tests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: run-tests
description: Correr tests del backend de PROSEGUIT (unitarios e integración). Usa despues de hacer cambios de codigo para verificar que todo funciona.
allowed-tools: Bash(npm test *), Bash(npm run test*), Bash(npx vitest *)
argument-hint: "[unit|integration|all|archivo-especifico]"
---

# Run Tests - PROSEGUIT

Los tests están en el backend (Vitest). El frontend no tiene tests: para verificarlo, `npm run build --workspace=frontend` (tsc + vite) y probar en el navegador.

## Sin argumentos o "unit": tests unitarios (~140, no requieren DB)
```bash
npm test
```
Desde la raíz: compila `@proseguit/shared`, genera el cliente Prisma y corre Vitest excluyendo `src/__tests__/`.

## Argumento "integration": tests de integración (~45)
```bash
cd backend && npm run test:integration
```
Crea una base temporal `proseguit_test_*` en el PostgreSQL local y le aplica toda la cadena de migraciones desde cero, así que también valida que las migraciones nuevas corren. Requiere la DB levantada (`npm run db:up`).

## Argumento "all"
```bash
npm test && (cd backend && npm run test:integration)
```
Antes de un release: `npm run release:check` (versiones + build + unitarios + integración).

## Archivo especifico
```bash
cd backend && npx vitest run $ARGUMENTS
```

## Watch mode (desarrollo)
```bash
cd backend && npm run test:watch
```

## Cuando un test falla
1. Leer el mensaje de error completo
2. Identificar el archivo y linea del fallo
3. Verificar si el test esta desactualizado o si hay un bug real
4. Correr solo ese test: `cd backend && npx vitest run path/to/test.ts`
5. Fixear y re-correr
6. Si cambiaste `packages/shared`, recompilarlo (`npm run build:shared`) antes de correr Vitest directo

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.