mirror of
https://github.com/cyberjunky/home-assistant-garmin_connect.git
synced 2026-01-10 05:17:59 -05:00
20 lines
335 B
Bash
Executable File
20 lines
335 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run pytest with coverage
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
# Activate virtual environment if present
|
|
if [ -f ".venv/bin/activate" ]; then
|
|
# shellcheck disable=SC1091
|
|
. .venv/bin/activate
|
|
fi
|
|
|
|
pytest tests/ \
|
|
--cov=custom_components.garmin_connect \
|
|
--cov-report=term-missing \
|
|
--cov-report=html \
|
|
-v \
|
|
"$@"
|