Latest Test Report¶
Report ID: 2025-01-06-main Generated: 2025-01-06 at 02:30 UTC Branch: main Commit: 13343da
Summary¶
| Metric | Value | Status |
|---|---|---|
| Total Tests | 1,247 | ✅ |
| Passed | 1,245 | ✅ |
| Failed | 2 | ⚠️ |
| Skipped | 0 | ✅ |
| Coverage | 87.3% | ✅ |
| Duration | 4m 32s | ✅ |
Coverage Report¶
Overall Coverage¶
Name Stmts Miss Cover
---------------------------------------------------------------------
backend/app/ 4523 572 87.3%
core/ 623 25 96.0%
domains/ 1823 255 86.0%
modules/ 1204 208 82.7%
infrastructure/ 873 84 90.4%
---------------------------------------------------------------------
TOTAL 4523 572 87.3%
Coverage by Component¶
Core Components¶
app/core/config.py- 100% coverageapp/core/security.py- 95% coverageapp/core/jwt.py- 94% coverageapp/core/middleware.py- 93% coverage
Domains¶
environments- 88% coveragesites- 86% coveragewordpress- 84% coveragebackups- 85% coveragedomains_management- 82% coverage
Modules¶
auth- 92% coverageusers- 88% coverageteams- 86% coveragerbac- 84% coverage
Test Results by Category¶
Unit Tests¶
Integration Tests¶
E2E Tests¶
Failed Tests¶
Test 1: Unit Test Failure¶
File: tests/unit/domains/test_environments_service.py
Test: test_environment_creation_with_invalid_domain
Error:
AssertionError: Expected ValidationError but got ValueError
File "test_environments_service.py", line 245
Test 2: E2E Test Failure¶
File: tests/e2e/test_site_deployment.py
Test: test_site_deployment_full_workflow
Error:
Mutation Testing Results¶
Security-Critical Files¶
app/core/jwt.py .......... Score: 94% (Target: 90%) ✅
app/core/security.py ..... Score: 92% (Target: 90%) ✅
app/core/auth.py ......... Score: 89% (Target: 85%) ✅
Overall Mutation Score¶
Performance Metrics¶
Test Execution Time¶
Fastest Test: 0.01s
Median Test: 0.15s
Slowest Test: 8.2s (tests/integration/test_backup_restore.py::test_full_restore)
Slow Tests (> 3s)¶
test_full_restore- 8.2stest_site_clone_workflow- 5.7stest_wp_install_with_plugins- 4.3stest_domain_ssl_provisioning- 3.8stest_environment_state_machine- 3.2s
Quality Gates¶
Gate Results¶
| Gate | Requirement | Actual | Status |
|---|---|---|---|
| Coverage | ≥ 85% | 87.3% | ✅ PASS |
| Core Coverage | ≥ 95% | 96.0% | ✅ PASS |
| Mutation Score | ≥ 80% | 88.5% | ✅ PASS |
| Security Mutation | ≥ 90% | 92.0% | ✅ PASS |
| Failed Tests | 0 | 2 | ⚠️ WARNING |
Overall Status¶
⚠️ WARNING - Coverage and mutation gates passed, but 2 tests failed
Recommendations¶
Immediate Actions¶
- Fix failing unit test in
test_environments_service.py - Investigate flaky E2E test in
test_site_deployment.py
Coverage Improvements¶
- Add tests for
domains_management(currently 82%) - Improve error path coverage in
sitesdomain - Add edge case tests for backup restoration
Performance Improvements¶
- Optimize slow integration tests (particularly
test_full_restore) - Consider parallel test execution for faster feedback
Historical Comparison¶
vs Previous Report (2025-01-05)¶
| Metric | Previous | Current | Change |
|---|---|---|---|
| Coverage | 86.8% | 87.3% | +0.5% |
| Mutation Score | 87.2% | 88.5% | +1.3% |
| Test Count | 1,240 | 1,247 | +7 |
| Duration | 4m 45s | 4m 32s | -13s |
Metadata¶
Report Details¶
{
"report_id": "2025-01-06-main",
"generated_at": "2025-01-06T02:30:00Z",
"branch": "main",
"commit": "13343da",
"trigger": "push_to_main",
"pipeline_url": "https://github.com/mbpanel/mbpanelapi/actions/1234"
}
Archive¶
View All Reports - Historical test reports archive.