-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·37 lines (29 loc) · 1.02 KB
/
Copy pathrun_tests.sh
File metadata and controls
executable file
·37 lines (29 loc) · 1.02 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
#!/bin/bash
# Invoice Generator Test Runner
# This script runs all tests for the Invoice Generator application
echo "=== Invoice Generator Test Suite ==="
echo ""
# Activate conda environment
echo "Activating conda environment..."
source ~/miniconda3/etc/profile.d/conda.sh
conda activate invoice_generator
# Check if environment is activated
if [[ "$CONDA_DEFAULT_ENV" != "invoice_generator" ]]; then
echo "Error: Failed to activate invoice_generator environment"
exit 1
fi
echo "Environment activated: $CONDA_DEFAULT_ENV"
echo ""
# Run all tests
echo "Running all tests..."
echo "===================="
python -m unittest discover -s tests -v
echo ""
echo "=== Test Summary ==="
echo "All tests completed."
echo ""
# Optional: Run specific test categories
echo "To run specific test categories:"
echo " Unit tests: python -m unittest discover -s tests/unit -v"
echo " Integration tests: python -m unittest discover -s tests/integration -v"
echo " Functional tests: python -m unittest discover -s tests/functional -v"