test.sh
This file
Path
scripts/test.sh
12 lines · 530 bytes · Shell
Last changed by
✨ Richify, add integrations with Rich everywhere (#419)Sebastián Ramírezbefore adoption6208b5b
History of this fileTake it
12345678910111213#!/usr/bin/env bash
set -eset -x
# For tests, a large terminal widthexport TERMINAL_WIDTH=3000# Force disable terminal for tests inside of pytest, takes precedence over GITHUB_ACTIONS env varexport _TYPER_FORCE_DISABLE_TERMINAL=1bash ./scripts/test-files.sh# Use xdist-pytest --forked to ensure modified sys.path to import relative modules in examples keeps workingpytest --cov=typer --cov=tests --cov=docs_src --cov-report=term-missing --cov-report=xml -o console_output_style=progress --forked --numprocesses=auto ${@}