-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·36 lines (30 loc) · 1.08 KB
/
Copy pathtest.sh
File metadata and controls
executable file
·36 lines (30 loc) · 1.08 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
#!/usr/bin/env bash
# ==============================================================================
# Rexone Mobile — Full Test Suite Runner (Unit + E2E)
#
# Usage:
# ./scripts/test.sh [flow|file] [-d device] [options]
#
# Examples:
# ./scripts/test.sh # Run unit tests, then all E2E flows
# ./scripts/test.sh sign-in # Run unit tests, then sign-in E2E
# ./scripts/test.sh -d "emulator-5554" # Run unit tests, then E2E on device
#
# Note:
# To run ONLY Unit tests:
# ./scripts/test_unit.sh
# To run ONLY E2E tests:
# ./scripts/test_e2e.sh
# ==============================================================================
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
cd "$PROJECT_ROOT"
echo "===================================================="
echo " 📱 Rexone Mobile — Running Full Test Suite"
echo " (Unit + E2E)"
echo "===================================================="
# 1. Run Unit tests
"$SCRIPT_DIR/test_unit.sh"
# 2. Run E2E tests
"$SCRIPT_DIR/test_e2e.sh" "$@"