test.sh
This file
Path
scripts/test.sh
12 lines · 464 bytes · Shell
Last changed by
👷 Move from pytest-cov to coverage and Codecov to Smokeshow (#483)Sebastián Ramírezbefore adoptionb988f6f
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 workingcoverage run -m pytest -o console_output_style=progress --forked --numprocesses=auto ${@}