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
The walk stopped after 200 commits: lines older than ea0f2a6 point at it.
:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastián Ramírezbefore adoptionea0f2a6
lines 1–5why, one step back1#!/usr/bin/env bash23set -e4set -x5✨ Richify, add integrations with Rich everywhere (#419)Sebastián Ramírezbefore adoption6208b5b
lines 6–9why, one step back6# For tests, a large terminal width7export TERMINAL_WIDTH=30008# Force disable terminal for tests inside of pytest, takes precedence over GITHUB_ACTIONS env var9export _TYPER_FORCE_DISABLE_TERMINAL=1:sparkles: Docs for Typer CLI (#64)Sebastián Ramírezbefore adoption96731c4
line 10why, one step back10bash ./scripts/test-files.sh:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastián Ramírezbefore adoptionea0f2a6
line 11why, one step back11# Use xdist-pytest --forked to ensure modified sys.path to import relative modules in examples keeps working✅ Report coverage in XML (#146)Sebastián Ramírezbefore adoption6da7364
line 12why, one step back12pytest --cov=typer --cov=tests --cov=docs_src --cov-report=term-missing --cov-report=xml -o console_output_style=progress --forked --numprocesses=auto ${@}