typer/scripts/test.sh

13 lines
490 B
Bash
Raw Normal View History

2019-12-24 13:32:25 +01:00
#!/usr/bin/env bash
set -e
set -x
# For tests, a large terminal width
export TERMINAL_WIDTH=3000
# Force disable terminal for tests inside of pytest, takes precedence over GITHUB_ACTIONS env var
export _TYPER_FORCE_DISABLE_TERMINAL=1
bash ./scripts/test-files.sh
2022-11-05 15:25:31 +01:00
# It seems xdist-pytest ensures modified sys.path to import relative modules in examples keeps working
pytest --cov-config=.coveragerc --cov --cov-report=term-missing -o console_output_style=progress --numprocesses=auto ${@}