таски готовы
This commit is contained in:
36
specs/019-superset-ux-redesign/tests/coverage.md
Normal file
36
specs/019-superset-ux-redesign/tests/coverage.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# Coverage Matrix: 019-superset-ux-redesign
|
||||
|
||||
**Date**: 2026-02-21
|
||||
**Executed by**: Tester Agent
|
||||
|
||||
## Coverage Matrix
|
||||
|
||||
| Module | File | Has Tests | TIER | TEST_DATA Available | Notes |
|
||||
|--------|------|-----------|------|---------------------|-------|
|
||||
| SidebarStore | `frontend/src/lib/stores/sidebar.js` | ✅ | STANDARD | N/A | Store state, toggle, mobile, persistence covered |
|
||||
| TaskDrawerStore | `frontend/src/lib/stores/taskDrawer.js` | ✅ | CRITICAL | ⚠️ Not defined in semantics/contracts | Open/close, mapping, retrieval covered |
|
||||
| ActivityStore | `frontend/src/lib/stores/activity.js` | ✅ | STANDARD | N/A | Active count and recent task derivation covered |
|
||||
| Sidebar | `frontend/src/lib/components/layout/Sidebar.svelte` | ✅ | CRITICAL | ⚠️ Not defined in semantics/contracts | UX state/store integration tests present |
|
||||
| TaskDrawer | `frontend/src/lib/components/layout/TaskDrawer.svelte` | ✅ | CRITICAL | ⚠️ Not defined in semantics/contracts | Drawer state and resource-task interactions covered |
|
||||
| TopNavbar | `frontend/src/lib/components/layout/TopNavbar.svelte` | ✅ | CRITICAL | ⚠️ Not defined in semantics/contracts | Activity/store integration and UX behaviors covered |
|
||||
| Breadcrumbs | `frontend/src/lib/components/layout/Breadcrumbs.svelte` | ✅ | STANDARD | N/A | Added contract + truncation/label logic tests |
|
||||
| DashboardsAPI | `backend/src/api/routes/dashboards.py` | ✅ | CRITICAL | ⚠️ Not defined in semantics/contracts | Existing backend tests present (not executed in this cycle) |
|
||||
| DatasetsAPI | `backend/src/api/routes/datasets.py` | ✅ | CRITICAL | ⚠️ Not defined in semantics/contracts | Existing backend tests present (not executed in this cycle) |
|
||||
| ResourceService | `backend/src/services/resource_service.py` | ✅ | STANDARD | N/A | Existing backend tests present (not executed in this cycle) |
|
||||
|
||||
## Current Frontend Test Execution Snapshot
|
||||
|
||||
- Test files: **9 passed**
|
||||
- Tests: **82 passed**
|
||||
- Failed: **0**
|
||||
- Skipped: **0**
|
||||
|
||||
Command:
|
||||
```bash
|
||||
cd frontend && npm run test
|
||||
```
|
||||
|
||||
## Observations
|
||||
|
||||
- No explicit `@TEST_DATA` fixtures were found for CRITICAL modules in `.ai/standards/semantics.md`; this file defines format requirements only.
|
||||
- Coverage gap addressed: missing tests for `Breadcrumbs.svelte` added in co-located `__tests__` directory.
|
||||
@@ -0,0 +1,67 @@
|
||||
# Fix Report: 019-superset-ux-redesign - COMPLETED
|
||||
|
||||
**Date**: 2026-02-21
|
||||
**Report**: specs/019-superset-ux-redesign/tests/reports/2026-02-21-report.md
|
||||
**Fixer**: Coder Agent
|
||||
|
||||
## Summary
|
||||
|
||||
- Total Failed Tests: 0
|
||||
- Total Fixed: 0
|
||||
- Total Skipped: 0
|
||||
|
||||
## Failed Tests Analysis
|
||||
|
||||
No failing tests were reported in `specs/019-superset-ux-redesign/tests/reports/2026-02-21-report.md`.
|
||||
|
||||
### Informational Issues From Report
|
||||
|
||||
#### Test: `src/lib/stores/__tests__/sidebar.test.js`
|
||||
|
||||
**File**: `frontend/src/lib/stores/__tests__/sidebar.test.js`
|
||||
**Error**: Historical flakiness due to state leakage (`isExpanded` assertion failed)
|
||||
|
||||
**Root Cause**: Shared store state between tests in earlier version.
|
||||
|
||||
**Fix Required**: None in this cycle; report confirms deterministic `beforeEach` reset already added.
|
||||
|
||||
**Status**: Completed (pre-fixed before this cycle)
|
||||
|
||||
---
|
||||
|
||||
#### Test: `src/lib/components/layout/__tests__/test_breadcrumbs.svelte.js` (initial approach)
|
||||
|
||||
**File**: `frontend/src/lib/components/layout/__tests__/test_breadcrumbs.svelte.js`
|
||||
**Error**: Historical Svelte runtime/render incompatibility with prior test approach.
|
||||
|
||||
**Root Cause**: Previous mount strategy did not match current frontend test setup.
|
||||
|
||||
**Fix Required**: None in this cycle; report confirms tests were reworked to contract/logic-focused checks and now pass.
|
||||
|
||||
**Status**: Completed (pre-fixed before this cycle)
|
||||
|
||||
## Fixes Applied
|
||||
|
||||
No implementation or test modifications were required in this cycle because all tests already pass.
|
||||
|
||||
**Semantic Integrity**: Preserved ✅ (no semantic anchors/tags were changed or removed)
|
||||
|
||||
## Verification
|
||||
|
||||
Command from test report:
|
||||
|
||||
```bash
|
||||
cd frontend && npm run test
|
||||
```
|
||||
|
||||
Reported results:
|
||||
|
||||
- Total: 82
|
||||
- Passed: 82
|
||||
- Failed: 0
|
||||
- Skipped: 0
|
||||
|
||||
## Next Steps
|
||||
|
||||
- [ ] Run backend tests separately and resolve pre-existing auth/import issues if targeted by scope.
|
||||
- [ ] Optionally execute frontend coverage run and publish numeric coverage report.
|
||||
@@ -0,0 +1,46 @@
|
||||
# Test Report: 019-superset-ux-redesign
|
||||
|
||||
**Date**: 2026-02-21
|
||||
**Executed by**: Tester Agent
|
||||
|
||||
## Coverage Summary
|
||||
|
||||
| Module | Tests | Coverage % |
|
||||
|--------|-------|------------|
|
||||
| Breadcrumbs.svelte | 5 | N/A (behavioral/contract tests) |
|
||||
| Frontend test suite total | 82 | N/A (coverage runner not executed) |
|
||||
|
||||
## Test Results
|
||||
|
||||
- Total: 82
|
||||
- Passed: 82
|
||||
- Failed: 0
|
||||
- Skipped: 0
|
||||
|
||||
Executed command:
|
||||
```bash
|
||||
cd frontend && npm run test
|
||||
```
|
||||
|
||||
## Issues Found
|
||||
|
||||
| Test | Error | Resolution |
|
||||
|------|-------|------------|
|
||||
| `src/lib/stores/__tests__/sidebar.test.js` | Flaky state leakage (`isExpanded` assertion failed) | Added deterministic `beforeEach` reset for `sidebarStore` |
|
||||
| `src/lib/components/layout/__tests__/test_breadcrumbs.svelte.js` (initial approach) | Svelte render mode/runtime incompatibility in current test setup | Reworked into contract/logic-focused unit tests without client mount |
|
||||
|
||||
## Changes Made
|
||||
|
||||
- Added new co-located test file:
|
||||
- `frontend/src/lib/components/layout/__tests__/test_breadcrumbs.svelte.js`
|
||||
- Stabilized existing test file:
|
||||
- `frontend/src/lib/stores/__tests__/sidebar.test.js`
|
||||
- Added coverage matrix document:
|
||||
- `specs/019-superset-ux-redesign/tests/coverage.md`
|
||||
|
||||
## Next Steps
|
||||
|
||||
- [x] Fix failed tests
|
||||
- [x] Add more coverage for layout module (`Breadcrumbs.svelte`)
|
||||
- [ ] Run backend test suite and address pre-existing backend import/auth issues separately
|
||||
- [ ] Optionally add frontend `vitest --coverage` run and publish numeric coverage report
|
||||
Reference in New Issue
Block a user