typer/scripts/test.sh
Sebastián Ramírez 96731c43be
Docs for Typer CLI (#64)
*  Add docs for Typer CLI

* 📝 Update references to Typer CLI in docs

* 🔧 Update tests to check files and linting before tests, to error out early

* 📝 Sync README.md with docs/index.md
2020-03-11 17:16:49 +01:00

10 lines
365 B
Bash
Executable file

#!/usr/bin/env bash
set -e
set -x
bash ./scripts/test-files.sh
bash ./scripts/lint.sh
export PYTHONPATH=./docs/src
# Use xdist-pytest --forked to ensure modified sys.path to import relative modules in examples keeps working
pytest --cov=typer --cov=tests --cov=docs/src --cov-report=term-missing -o console_output_style=progress --forked --numprocesses=auto ${@}