test.sh
This file
Path
scripts/test.sh
13 lines · 539 bytes · Shell
Last changed by
🔨 Add `--showlocals` to `test.sh` (#1169)Rick Porterbefore adoption4bb6f3b
History of this fileTake it
1234567891011121314#!/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=1# Run autocompletion install tests in the CIexport _TYPER_RUN_INSTALL_COMPLETION_TESTS=1# It seems xdist-pytest ensures modified sys.path to import relative modules in examples keeps workingpytest --cov --cov-report=term-missing -o console_output_style=progress --showlocals --numprocesses=auto ${@}