docs: add full coverage and system report
This commit is contained in:
parent
0b4a31faae
commit
1e830c513d
1 changed files with 55 additions and 0 deletions
55
docs/FULL_TEST_REPORT.md
Normal file
55
docs/FULL_TEST_REPORT.md
Normal file
|
|
@ -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*
|
||||
Loading…
Reference in a new issue