From 9bdce251876f756c1f924ecca1e7f03ee8fe557d Mon Sep 17 00:00:00 2001 From: patrick Date: Wed, 2 Sep 2026 22:52:42 +0200 Subject: [PATCH] test(coverage): fail-under=50 Gate + XML-Report MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Baseline liegt bei 55% (verifiziert auf 137). Gate mit 5%-Puffer, kein CI-Job dafür – Tests brauchen echtes Postgres+Redis mit RLS-Setup, läuft nur remote (SSH), nicht in Gitea Actions. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_015Ahyx6D3r7G1EuAc42nezn --- .gitignore | 3 +++ backend/pytest.ini | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index bf9eeb1..6874917 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,9 @@ env/ # Alembic backend/migrations/versions/*.pyc +backend/coverage.xml +backend/.coverage +backend/htmlcov/ # Environment / Secrets .env diff --git a/backend/pytest.ini b/backend/pytest.ini index eae13df..6fccbf6 100644 --- a/backend/pytest.ini +++ b/backend/pytest.ini @@ -5,4 +5,4 @@ asyncio_default_test_loop_scope = session testpaths = tests python_files = test_*.py python_functions = test_* -addopts = --cov=app --cov-report=term-missing +addopts = --cov=app --cov-report=term-missing --cov-report=xml:coverage.xml --cov-fail-under=50