#!/bin/bash # Run all tests (frontend and backend) set -e echo "๐Ÿงช Running all tests..." echo "" echo "๐Ÿ“ฆ Running frontend tests..." # `bun run test` is `vitest run` (single pass). It used to be bare `vitest`, # which needed an explicit `--run` here to avoid parking CI in watch mode. bun run test echo "" echo "๐Ÿฆ€ Running Rust tests..." cd src-tauri cargo test cd .. echo "" echo "๐Ÿšง Checking architectural gates..." # Boundary tripwire (DR-094): no Jellyfin taxonomy in the presentation layer. bun run check:boundary # Traceability coverage (DR-093): fails below the ratchet in # .gitea/workflows/traceability-check.yml (MIN_THRESHOLD, currently 88%), or # above 100% (miscount). bun run traces:coverage echo "" echo "โœ… All tests passed!"