From 84766d99a821d03e1c69eabc4388d3c7465bdc29 Mon Sep 17 00:00:00 2001 From: Xuan Hu Date: Wed, 24 May 2023 16:23:18 +0800 Subject: [PATCH] Check minimal test coverage in make tests. --- Makefile | 2 +- Makefile.jinja | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7095a97e..0e07f1c4 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,7 @@ toml-sort: ${PIPRUN} toml-sort pyproject.toml tests: - ${PIPRUN} python -m pytest . + ${PIPRUN} python -m pytest --cov-fail-under=$(or $(SS_TEST_COVERAGE_MIN),100) . freeze: @${PIPRUN} pip freeze --exclude-editable diff --git a/Makefile.jinja b/Makefile.jinja index fb548267..9a9436e5 100644 --- a/Makefile.jinja +++ b/Makefile.jinja @@ -62,7 +62,7 @@ toml-sort: ${PIPRUN} toml-sort pyproject.toml tests: - ${PIPRUN} python -m pytest . + ${PIPRUN} python -m pytest --cov-fail-under=$(or $(SS_TEST_COVERAGE_MIN),100) . freeze: @${PIPRUN} pip freeze --exclude-editable