demo-epb — Test Summary Report

Datum: 2026-05-12T09:07:46.238140+00:00

Gesamt: 46 Tests, 46 bestanden, 0 fehlgeschlagen — PASS

Pro Test-Suite

SuiteAnzahlBestandenFehlgeschlagenAnforderungen
test_switch_debouncer550SWE-025
test_actuator_driver11110SWE-006, SWE-013, SWE-014, SWE-015
test_apply_controller12120SWE-001, SWE-002, SWE-003, SWE-004, SWE-005
test_safety_manager18180SWE-007, SWE-008, SWE-009, SWE-010, SWE-011, SWE-012

test_switch_debouncer

#TestStatus
1init -> neutralok
2apply needs 5 stable samples (50 ms)ok
3release needs 5 stable samples (50 ms)ok
4bouncing input keeps current stateok
5both apply+release pressed -> neutralok

test_actuator_driver

#TestStatus
1init -> beide Aktoren STOP, 0 mAok
2apply: invalid ID -> EINVALok
3apply: PWM > 100% -> EINVALok
4apply normal -> direction=APPLY, pwm=80ok
5release normal -> direction=RELEASEok
6ISR-Sample setzt current_ma und peakok
7Overcurrent > 8 A fuer 100 ms -> STOP + overcurrent flagok
8Overcurrent < 100 ms loest noch nicht ausok
9nach Overcurrent: weiterer apply -> EOVERCURRENTok
10Klemmkraft-Schaetzung aus Peak-Strom (SWE-015)ok
11stop -> direction=STOP, pwm=0ok

test_apply_controller

#TestStatus
1init -> RELEASEDok
2step_50ms(NULL) -> last_error=EINVALok
3Apply-Request bei Stillstand -> APPLYINGok
4Apply-Request ohne Stillstand wird ignoriertok
5APPLYING -> APPLIED wenn beide Klemmkraefte >= Targetok
6APPLYING-Timeout (>30 Steps) -> ERRORok
7APPLIED haelt Klemmkraft (SWE-001)ok
8Release ohne Engine wird abgelehntok
9Release mit allen Voraussetzungen -> RELEASING -> RELEASEDok
10Safety-Manager Apply-Request (Hill-Hold/Auto-Apply)ok
11Step-Counter steigt monoton (SWE-002 Watchdog-Alive)ok
12ERROR -> RELEASED bei neutralem Switchok

test_safety_manager

#TestStatus
1init -> IDLE, kein Apply-Requestok
2NULL Input ist no-opok
3SWE-007: Motor aus + Stillstand -> AUTO_APPLY_ARMEDok
4SWE-008: nach ca. 2s -> TRIGGERED + Apply-Requestok
5Auto-Apply bricht ab wenn Motor wieder anok
6AUTO_APPLY_TRIGGERED -> IDLE wenn Apply Controller fertigok
7SWE-009: Grad >5% + Stillstand + Bremse -> HILL_HOLD_ARMEDok
8Hill-Hold auch bei negativem Grad (abschuessig)ok
9Grad < 5% -> kein Hill-Holdok
10SWE-010: Bremse losgelassen -> HILL_HOLD_ACTIVE + Apply-Requestok
11HILL_HOLD_ACTIVE endet wenn Fahrzeug rollt (v > 2 km/h)ok
12HILL_HOLD_ARMED -> IDLE wenn Grad < 5% wirdok
13SWE-011 + SWE-012: Anfahrabsicht + Safety -> DRIVE_AWAY + Release-Requestok
14SWE-012: Tuer offen blockiert Drive-Awayok
15SWE-012: Gurt nicht angelegt blockiert Drive-Awayok
16SWE-011: Gas < 10% loest kein Drive-Away ausok
17DRIVE_AWAY -> IDLE wenn Apply Controller geloest hatok
18Bereits Applied: kein Auto-Apply Armingok