-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·32 lines (25 loc) · 914 Bytes
/
Copy pathrun_tests.sh
File metadata and controls
executable file
·32 lines (25 loc) · 914 Bytes
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
#!/bin/bash
# Script to run all tests with coverage
echo "======================================"
echo "Running Online Bookstore Test Suite"
echo "======================================"
echo ""
# Run unit tests
echo "1. Running Unit Tests (Models)..."
python -m pytest tests/test_models.py -v --cov=models --cov-report=term-missing
echo ""
echo "2. Running Integration Tests (Flask Routes)..."
python -m pytest tests/test_app.py -v --cov=app --cov-append --cov-report=term-missing
echo ""
echo "3. Running Performance Tests..."
python -m pytest tests/test_performance.py -v
echo ""
echo "4. Generating Coverage Report..."
python -m pytest tests/ --cov=. --cov-report=html --cov-report=term --cov-report=xml
echo ""
echo "======================================"
echo "Test Suite Complete!"
echo "======================================"
echo ""
echo "Coverage report generated in htmlcov/index.html"
echo ""