Skip to content

Commit f79f46e

Browse files
committed
🔨 Add and update scripts for tests
1 parent b12690c commit f79f46e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

scripts/test-cov-html.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
set -e
44
set -x
55

6-
bash scripts/test.sh --cov-report=html ${@}
6+
bash scripts/test.sh ${@}
7+
coverage combine
8+
coverage report --show-missing
9+
coverage html

scripts/test.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@
33
set -e
44
set -x
55

6-
# For tests, a large terminal width
7-
export TERMINAL_WIDTH=3000
8-
# Force disable terminal for tests inside of pytest, takes precedence over GITHUB_ACTIONS env var
9-
export _TYPER_FORCE_DISABLE_TERMINAL=1
10-
# It seems xdist-pytest ensures modified sys.path to import relative modules in examples keeps working
11-
pytest --cov --cov-report=term-missing -o console_output_style=progress --numprocesses=auto ${@}
6+
coverage run -m pytest tests ${@}

0 commit comments

Comments
 (0)