-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest
More file actions
38 lines (32 loc) · 1.01 KB
/
test
File metadata and controls
38 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
set -e
# Enable dev mode to isolate from production
export FBUILD_DEV_MODE=1
# Check for --full flag
FULL_MODE=false
for arg in "$@"; do
if [ "$arg" == "--full" ]; then
FULL_MODE=true
break
fi
done
echo "========================================"
echo "Running unit tests (parallel)"
echo "========================================"
uv run --group test pytest -n auto tests/unit -v --durations=0
if [ "$FULL_MODE" == "true" ]; then
echo ""
echo "========================================"
echo "Running integration tests (serial)"
echo "========================================"
uv run --group test pytest tests/integration -v --durations=0
else
echo ""
echo "========================================"
echo "Skipping integration tests (use --full to run them)"
echo "========================================"
fi
echo ""
echo "========================================"
echo "All tests completed successfully!"
echo "========================================"