2019-12-24 13:32:25 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2022-07-12 18:45:43 +02:00
|
|
|
# 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
|
2020-03-11 17:16:49 +01:00
|
|
|
bash ./scripts/test-files.sh
|
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
|
2020-07-19 14:37:50 +02:00
|
|
|
pytest --cov=typer --cov=tests --cov=docs_src --cov-report=term-missing --cov-report=xml -o console_output_style=progress --forked --numprocesses=auto ${@}
|