From 1e830c513d616f4c36ca22f774cca00950516c7d Mon Sep 17 00:00:00 2001 From: Tiago Yamamoto Date: Thu, 1 Jan 2026 14:49:22 -0300 Subject: [PATCH] docs: add full coverage and system report --- docs/FULL_TEST_REPORT.md | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 docs/FULL_TEST_REPORT.md diff --git a/docs/FULL_TEST_REPORT.md b/docs/FULL_TEST_REPORT.md new file mode 100644 index 0000000..42398c2 --- /dev/null +++ b/docs/FULL_TEST_REPORT.md @@ -0,0 +1,55 @@ +# Comprehensive Test & System Report +**Date:** 2026-01-01 +**Environment:** WSL2 (Linux) + +## ๐Ÿšจ System Health Alert +**Status:** **High Resource Usage** +* **Memory:** 96% Used (3.7GB / 3.9GB). Swap 50% Used. +* **Load Average:** 8.51 (Critical). +* **Impact:** IDE instability and system slowness are directly caused by running multiple heavy test suites (Node.js, Go Build, Playwright/Browser) concurrently on a limited memory footprint. +* **Action Taken:** Terminated heavy test processes to restore stability. + +--- + +## ๐Ÿงช Test Coverage & Status + +### 1. Frontend (`/frontend`) +* **Unit Tests:** โœ… PASS (14 Suites, 62 Tests) +* **E2E Tests (Playwright):** โš ๏ธ **SKIPPED/CANCELLED** + * *Reason:* System Out-Of-Memory (OOM) during execution. + * *Ready for:* Local execution where more memory is available. +* **Coverage Highlights:** + * `src/lib/utils.ts`: **100%** + * `src/components/ui/textarea.tsx`: **100%** + * `src/lib/auth.ts`: **72.3%** + * `src/lib/i18n.tsx`: **84.9%** + * *Overall Branch Coverage:* ~50% in key logic files. + +### 2. Backoffice (`/backoffice`) +* **Unit Tests:** โœ… PASS (2 Suites, 10 Tests) +* **Coverage Highlights:** + * `src/stripe/stripe.service.ts`: **100%** (Critical path) + * `src/app.service.ts`: **100%** + * *Global Coverage:* ~6% (Many generated modules pending tests). + +### 3. Backend (`/backend`) +* **Unit Tests:** โœ… PASS (All Packages) +* **Verification:** Verified Hash/Auth against **REAL DB** (PostgreSQL). +* **Coverage Highlights:** + * `internal/core/domain/entity`: **100%** + * `internal/api/middleware`: **100%** + * `internal/infrastructure/auth`: **94.4%** + * `internal/core/usecases/auth`: **70.9%** + * `internal/api/handlers`: **11.2%** (Needs improvement) + +--- + +## ๐Ÿ—๏ธ Architecture Verification +| Component | Real DB? | Real API? | Status | +|-----------|----------|-----------|--------| +| **Backend** | โœ… YES (Postgres) | N/A | Verified via `verify_login_test.go` | +| **Frontend Unit** | โŒ NO (Mocks) | โŒ NO (Mocks) | Standard for Unit Tests | +| **Frontend E2E** | โœ… YES (Intended) | โœ… YES (Intended) | Configuration ready, waiting for resources. | + +--- +*Generated by Antigravity*