typer/scripts/test.sh

12 lines
391 B
Bash
Raw Normal View History

2019-12-24 13:32:25 +01:00
#!/usr/bin/env bash
set -e
set -x
export PYTHONPATH=./docs/src
2020-01-05 20:50:14 +01:00
# Use xdist-pytest --forked to ensure modified sys.path to import relative modules in examples keeps working
pytest --cov=typer --cov=tests --cov=docs/src --cov-report=term-missing -o console_output_style=progress --forked --numprocesses=auto ${@}
2019-12-24 13:32:25 +01:00
bash ./scripts/lint.sh
2020-01-05 20:50:14 +01:00
# Include tests for files
bash ./scripts/test-files.sh