CarsRUS / tests /run_tests.sh
galbendavids's picture
RAG: comparison by supported models, partial answer for 1 known model, stronger prompts for context aggregation
de2bc35
raw
history blame contribute delete
569 Bytes
#!/usr/bin/env bash
# Run all tests before pushing to Hugging Face.
# Usage: from CarsRUS directory: ./tests/run_tests.sh or bash tests/run_tests.sh
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
cd "$PROJECT_ROOT"
export PYTHONPATH="$PROJECT_ROOT${PYTHONPATH:+:$PYTHONPATH}"
echo "Running business-logic tests (test_business_logic.py)..."
python tests/test_business_logic.py
echo ""
echo "Running RAG engine tests (test_rag.py)..."
python tests/test_rag.py
echo ""
echo "All tests passed. Safe to push to Hugging Face."