idea105-deltatrace/test.sh

24 lines
488 B
Bash
Executable File

#!/bin/bash
set -e
echo "=== DeltaTrace Test Suite ==="
echo "Installing dependencies..."
python -m pip install -q --upgrade pip
python -m pip install -q build
python -m pip install -q -e ".[test]"
echo ""
echo "Verifying package build..."
python -m build
echo ""
echo "Running unit tests..."
python -m pytest tests/ -v --tb=short 2>/dev/null || python -m unittest discover -s tests -v
echo ""
echo "Running demo..."
python -m deltatrace.demo
echo ""
echo "=== All tests passed ==="