From 241a11e3d8bfecc75d3d459b0ade0ca215f291b0 Mon Sep 17 00:00:00 2001 From: ahmdkaml Date: Sun, 16 Aug 2026 18:11:26 +0300 Subject: [PATCH] Add test coverage reporting --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 97fd035..c6422bc 100644 --- a/Makefile +++ b/Makefile @@ -5,18 +5,21 @@ .DEFAULT_GOAL := help PY := python3 -.PHONY: help setup test build-explainers favicons lint check +.PHONY: help setup test coverage build-explainers favicons lint check help: ## Show the available targets @grep -E '^[a-zA-Z_-]+:.*?## ' $(MAKEFILE_LIST) | \ awk 'BEGIN{FS = ":.*?## "}{printf " %-16s %s\n", $$1, $$2}' -setup: ## Install the package plus the dev tools (pytest, pre-commit) - $(PY) -m pip install -e ".[excel,parquet,proxy]" pytest pre-commit +setup: ## Install the package plus the dev tools (pytest, pytest-cov, pre-commit) + $(PY) -m pip install -e ".[excel,parquet,proxy]" pytest pytest-cov pre-commit test: ## Run the full test suite (mirrors CI) $(PY) -m pytest tests/ -q +coverage: ## Run the test suite with coverage reporting + $(PY) -m pytest tests/ --cov=faircode --cov-report=term-missing + build-explainers: ## Regenerate explainer pages, data.js, sitemap, and OG images (dark + light) $(PY) scripts/build_explainers.py $(PY) scripts/generate_og_images.py