Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 5aa9bdd point at it.

:bookmark: Release 0.0.5Sebastián Ramírezbefore adoption5aa9bdd

lines 1–5why, one step back
1#!/usr/bin/env bash
23set -e4set -x5

✨ Richify, add integrations with Rich everywhere (#419)Sebastián Ramírezbefore adoption6208b5b

lines 6–9why, one step back
6# For tests, a large terminal width
7export 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 back
10bash ./scripts/test-files.sh

:sparkles: Add docs for subcommands, examples, tests, bug fixesSebastián Ramírezbefore adoption13819bf

line 11why, one step back
11# 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 back
12pytest --cov=typer --cov=tests --cov=docs_src --cov-report=term-missing --cov-report=xml -o console_output_style=progress --forked --numprocesses=auto ${@}