#!/bin/bash
# Run all tests (frontend and backend)

set -e

echo "🧪 Running all tests..."
echo ""

echo "📦 Running frontend tests..."
bun run test --run

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 50%, or above 100% (miscount).
bun run traces:coverage

echo ""
echo "✅ All tests passed!"
