helpyourneighbour/TESTING.md
2026-03-04 21:13:12 +00:00

32 lines
918 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Testkonzept helpyourneighbour
Dieses Testkonzept ist **verpflichtend vor jedem Push**.
## Ziel
Stabile, sichere Releases durch standardisierte Tests in Docker auf dem Unraid-Host.
## Pflichtablauf (immer)
1. **Lokaler Schnelltest**
- `cd backend && npm ci && npm test`
2. **Docker-Test auf Unraid**
- Image bauen und Smoke-Test im Container ausführen.
3. **Erst danach pushen**
- Wenn ein Test fehlschlägt: kein Push, zuerst Fix.
## Docker-Standard (Unraid)
Im Repo-Root ausführen:
```bash
./scripts/test-in-docker.sh
```
## Mindest-Testumfang
- Syntax-Validierung aller Backend-JS-Dateien (`node --check`)
- Smoke-Test-Exitcode 0
## Erweiterung (nächster Schritt)
- API-Integrationstests (Auth, Requests, Offers, Contacts)
- DB-Container für reproduzierbare End-to-End-Tests
## Verbindlichkeit
Dieses Konzept gilt als Standardprozess für alle weiteren Änderungen in `helpyourneighbour`.