Add Shipd test runner

This commit is contained in:
Devansh Rajput 2026-04-25 14:45:57 +05:30
parent 2ac89889f4
commit 58c4c61b71

29
test.sh Normal file
View file

@ -0,0 +1,29 @@
#!/bin/bash
set -e
OUTPUT=""
MODE=""
while [[ $# -gt 0 ]]; do
case "$1" in
--output_path)
OUTPUT="$2"
shift 2
;;
base|new)
MODE="$1"
shift
;;
*)
shift
;;
esac
done
if [ -z "$OUTPUT" ]; then
OUTPUT="results.xml"
fi
if [ "$MODE" = "base" ]; then
pytest tests/test_sessions.py --junitxml="$OUTPUT"
else
pytest tests/test_session_access.py --junitxml="$OUTPUT"
fi