-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_api_tests.sh
More file actions
executable file
·49 lines (40 loc) · 1.25 KB
/
run_api_tests.sh
File metadata and controls
executable file
·49 lines (40 loc) · 1.25 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
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
export HIREBASE_API_ENDPOINT="http://hirebase-local:8000"
# Check if API key is provided
if [ -z "$HIREBASE_API_KEY" ]; then
echo "No API key found in environment. You must set an API key by:"
echo "export HIREBASE_API_KEY='your-api-key'"
echo ""
echo "Exiting..."
exit 1
fi
# Set API endpoint
export HIREBASE_API_ENDPOINT="http://localhost:8000"
echo "Using API endpoint: $HIREBASE_API_ENDPOINT"
# Run the type tests
echo "================================="
echo "Running Type Tests..."
echo "================================="
pytest tests/test_types.py -v
echo ""
echo "================================="
echo "Running Client Tests..."
echo "================================="
pytest tests/test_client.py -v
echo ""
echo "================================="
echo "Running Jobs API tests..."
echo "================================="
pytest tests/test_jobs_real.py -v
echo ""
echo "================================="
echo "Running Companies API tests..."
echo "================================="
pytest tests/test_companies_real.py -v
echo ""
echo "================================="
echo "Running Products API tests..."
echo "================================="
pytest tests/test_products_real.py -v
echo ""
echo "All tests completed!"