Aktualisiere README mit Informationen zu Cypress Tests
- Fügt Anleitung zum Ausführen von Tests hinzu - Beschreibt Test-Features und Kommandos - Ergänzt Informationen zum headless Testmodus 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
27e1b2d82c
commit
621833766d
@ -30,3 +30,30 @@ Benutzer: myp
|
|||||||
Passwort: (persönlich bekannt)
|
Passwort: (persönlich bekannt)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
Die Frontend-App kann mit Cypress lokal getestet werden:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Installation der Abhängigkeiten
|
||||||
|
pnpm install
|
||||||
|
|
||||||
|
# Starten des Entwicklungsservers
|
||||||
|
pnpm dev
|
||||||
|
|
||||||
|
# Öffnen der Cypress-Test-UI
|
||||||
|
pnpm cypress
|
||||||
|
|
||||||
|
# Ausführen aller Tests im Headless-Modus
|
||||||
|
pnpm test
|
||||||
|
```
|
||||||
|
|
||||||
|
Die Tests laufen ohne OAuth-Authentifizierung und simulieren einen eingeloggten Benutzer.
|
||||||
|
|
||||||
|
### Test-Features:
|
||||||
|
|
||||||
|
- Lokaler Test auf http://localhost:3000
|
||||||
|
- Parallel ausführbar
|
||||||
|
- Keine GitHub OAuth-Authentifizierung erforderlich
|
||||||
|
- Simuliert API-Aufrufe mit Mocks
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user