Testing Audit¶
This report inventories the current automated test surface for the repository.
Coverage Artifacts¶
Python coverage: stale — coverage.xml only matches 16/30 tracked files in the current repository.
Frontend coverage: missing — Vitest coverage summary was not found.
Snapshot¶
Python source files tracked: 201
Python test files tracked: 176
Frontend source files tracked: 416
Frontend test files tracked: 31
Python Domain Summary¶
Area |
Source files |
Files with direct tests |
Direct-test density |
Coverage line rate |
|---|---|---|---|---|
|
11 |
10 |
90.9% |
40.2% |
|
3 |
3 |
100.0% |
40.0% |
|
12 |
8 |
66.7% |
72.6% |
|
5 |
4 |
80.0% |
69.9% |
|
3 |
2 |
66.7% |
n/a |
|
26 |
15 |
57.7% |
n/a |
|
10 |
8 |
80.0% |
n/a |
|
7 |
2 |
28.6% |
n/a |
|
10 |
6 |
60.0% |
n/a |
|
36 |
23 |
63.9% |
n/a |
|
17 |
17 |
100.0% |
n/a |
|
6 |
5 |
83.3% |
36.2% |
|
1 |
1 |
100.0% |
n/a |
|
4 |
3 |
75.0% |
n/a |
|
25 |
23 |
92.0% |
n/a |
|
18 |
14 |
77.8% |
n/a |
|
3 |
2 |
66.7% |
n/a |
|
1 |
0 |
0.0% |
n/a |
|
3 |
1 |
33.3% |
34.4% |
Highest-ROI Python Gaps¶
src/niamoto/core/plugins/deployers/cloudflare.py(300 lines, areacore/plugins/deployers, related tests: none)src/niamoto/gui/api/routers/layers.py(294 lines, areagui/api/routers, related tests: none)src/niamoto/gui/api/routers/deploy.py(270 lines, areagui/api/routers, related tests: none)src/niamoto/core/plugins/deployers/vercel.py(207 lines, areacore/plugins/deployers, related tests: none)src/niamoto/core/plugins/deployers/render.py(202 lines, areacore/plugins/deployers, related tests: none)src/niamoto/core/plugins/deployers/netlify.py(192 lines, areacore/plugins/deployers, related tests: none)src/niamoto/core/plugins/deployers/ssh.py(123 lines, areacore/plugins/deployers, related tests: none)src/niamoto/core/imports/multi_field_detector.py(681 lines, areacore/imports, related tests: none)src/niamoto/gui/api/services/templates/utils/entity_finder.py(582 lines, areagui/api/services, related tests: none)src/niamoto/gui/api/services/templates/utils/data_loader.py(413 lines, areagui/api/services, related tests: none)
Frontend Area Summary¶
Area |
Source files |
Test files |
Test-file density |
|---|---|---|---|
|
5 |
0 |
0.0% |
|
21 |
3 |
14.3% |
|
139 |
4 |
2.9% |
|
13 |
1 |
7.7% |
|
22 |
5 |
22.7% |
|
7 |
1 |
14.3% |
|
61 |
4 |
6.6% |
|
32 |
2 |
6.2% |
|
10 |
2 |
20.0% |
|
37 |
5 |
13.5% |
|
44 |
2 |
4.5% |
|
19 |
1 |
5.3% |
|
6 |
1 |
16.7% |
Highest-ROI Frontend Gaps¶
src/niamoto/gui/ui/src/features/import/hooks/useEnrichmentState.ts(1249 lines, areaimport, sibling tests: none)src/niamoto/gui/ui/src/features/site/hooks/useSiteBuilderState.ts(909 lines, areasite, sibling tests: none)src/niamoto/gui/ui/src/hooks/useJobPolling.ts(354 lines, areaother, sibling tests: none)src/niamoto/gui/ui/src/shared/hooks/site-config/siteConfigApi.ts(302 lines, areashared, sibling tests: none)src/niamoto/gui/ui/src/shared/hooks/site-config/types.ts(266 lines, areashared, sibling tests: none)src/niamoto/gui/ui/src/features/site/hooks/useUnifiedSiteTree.ts(265 lines, areasite, sibling tests: none)src/niamoto/gui/ui/src/features/welcome/hooks/useWelcomeScreen.ts(238 lines, areawelcome, sibling tests: none)src/niamoto/gui/ui/src/features/collections/hooks/useApiExportConfigs.ts(209 lines, areacollections, sibling tests: none)src/niamoto/gui/ui/src/shared/hooks/useProjectSwitcher.ts(205 lines, areashared, sibling tests: none)src/niamoto/gui/ui/src/features/tools/hooks/useConfig.ts(192 lines, areatools, sibling tests: none)
Recommended First Pass¶
Add direct tests for backend deploy adapters, shared helpers, and uncovered GUI API routes.
Extend the import-suggestion suite into uncovered decision seams before refactoring heuristics.
Add Vitest coverage and first-pass tests for frontend hooks, API normalization helpers, and runtime-dependent state flows.