Skip to content

Commit

Permalink
Allow arguments to be passed to pytest in run_tests.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
julianneswinoga committed Dec 11, 2023
1 parent 548d9dd commit c099bc8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/run_tests.sh
Expand Up @@ -13,6 +13,14 @@ if [ "$1" = 'clean' ]; then
pip3 install -U Cython
poetry update -vvv
fi

# Remove clean from args
for arg in "$@"; do
shift
[ "$arg" = "clean" ] && continue
set -- "$@" "$arg"
done

poetry build
poetry install
pytest --cov-report term-missing:skip-covered --cov=flightgear_python tests/
pytest --cov-report term-missing:skip-covered --cov=flightgear_python tests/ "$@"

0 comments on commit c099bc8

Please sign in to comment.