test.sh
This file
Path
scripts/test.sh
13 lines · 526 bytes · Shell
Last changed by
✅ Only run completion installation tests when the env var `_TYPER_RUN_INSTALL_COMPLETION_TESTS` is set (#995)Sofie Van Landeghembefore adoption9f9047d
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 --numprocesses=auto ${@}