Skip to content
Myr

Enforce coverage (#955)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Enforce coverage when running tests * Enforce test coverage

authored by Tom Christie · committed by GitHub · parent 51b70b3 · Browse files · 4 files+18 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+18 added−1 removed

  • other:+18 added−1 removed

4 files+18 added−1 removed

modified:.github/workflows/test-suite.yml+2 added
added:scripts/coverage+11 added
1#!/bin/sh -e23export PREFIX=""4if [ -d 'venv' ] ; then5 export PREFIX="venv/bin/"6fi7export SOURCE_FILES="httpx tests"89set -x1011${PREFIX}coverage report --show-missing --skip-covered --fail-under=97
modified:scripts/test+4 added
20 unmodified lines
2122set -ex2324${PREFIX}pytest $@2526if [ -z $GITHUB_ACTIONS ]; then27 scripts/coverage28fi
modified:setup.cfg+1 added-1 removed
14 unmodified lines
15line_length = 8816multi_line_output = 31718[tool:pytest]19addopts = --cov=httpx --cov=tests --cov-report=term-missing -rxXs19addopts = --cov=httpx --cov=tests -rxXs20markers =21 copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accodomate e.g. our test setup