Add test-cov.sh

This commit is contained in:
Yurii Motov
2026-02-24 21:32:54 +01:00
parent 65462231f5
commit 88cf069a98
3 changed files with 8 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ jobs:
run: uv pip install "git+https://github.com/Kludex/starlette@main"
- run: mkdir coverage
- name: Test
run: uv run --no-sync bash scripts/test.sh
run: uv run --no-sync bash scripts/test-cov.sh
env:
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}

View File

@@ -3,4 +3,4 @@
set -e
set -x
bash scripts/test.sh --cov --cov-context=test --cov-report=term-missing --cov-report=html ${@}
bash scripts/test-cov.sh --cov-report=term-missing --cov-report=html ${@}

6
scripts/test-cov.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
set -x
bash scripts/test.sh --cov --cov-context=test ${@}