← back to Handbag Auth Nextjs

scripts/run-tests.sh

34 lines

#!/bin/bash
# Test Runner Script for Python Tests

echo "=========================================="
echo "LUXVAULT Auction Scraper - Python Tests"
echo "=========================================="

# Change to scripts directory
cd "$(dirname "$0")"

# Run pytest with coverage
echo ""
echo "Running Python tests with coverage..."
pytest tests/ -v --cov=. --cov-report=term-missing --cov-report=html --cov-report=json

# Check exit code
if [ $? -eq 0 ]; then
    echo ""
    echo "=========================================="
    echo "All Python tests passed!"
    echo "=========================================="
    echo ""
    echo "Coverage report generated:"
    echo "- HTML: htmlcov/index.html"
    echo "- JSON: coverage.json"
    exit 0
else
    echo ""
    echo "=========================================="
    echo "Some Python tests failed!"
    echo "=========================================="
    exit 1
fi