#!/usr/bin/env bash
# File: bin/test
# Purpose: Slash-command friendly wrapper for running project tests via the
#          unified runner (scripts/run_pytest.py). Accepts arbitrary pytest
#          arguments and forwards them.
set -euo pipefail

SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
ROOT_DIR="$( cd -- "${SCRIPT_DIR}/.." &> /dev/null && pwd )"

cd "${ROOT_DIR}"
exec python3 scripts/run_pytest.py "$@"
