Skip to content

test: add 155 tests to reach 95%+ coverage across renamed modules

03a6b08
Select commit
Loading
Failed to load commit list.
Merged

refactor: rename analytics module ecosystem for clarity #78

test: add 155 tests to reach 95%+ coverage across renamed modules
03a6b08
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Mar 12, 2026 in 0s

71.17% (+0.77%) compared to 4854031

View this Pull Request on Codecov

71.17% (+0.77%) compared to 4854031

Details

Codecov Report

❌ Patch coverage is 89.62264% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.17%. Comparing base (4854031) to head (03a6b08).

Files with missing lines Patch % Lines
spp_analytics/models/indicator_registry.py 66.66% 2 Missing ⚠️
spp_api_v2_gis/routers/statistics.py 0.00% 2 Missing ⚠️
spp_api_v2_simulation/routers/analytics.py 50.00% 2 Missing ⚠️
spp_analytics/models/analytics_scope.py 80.00% 1 Missing ⚠️
spp_analytics/models/service_cache.py 87.50% 1 Missing ⚠️
spp_analytics/models/service_scope_resolver.py 66.66% 1 Missing ⚠️
spp_api_v2_gis/services/spatial_query_service.py 83.33% 1 Missing ⚠️
spp_metric_service/models/fairness_service.py 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             19.0      #78      +/-   ##
==========================================
+ Coverage   70.39%   71.17%   +0.77%     
==========================================
  Files         674      704      +30     
  Lines       37005    38554    +1549     
==========================================
+ Hits        26051    27439    +1388     
- Misses      10954    11115     +161     
Files with missing lines Coverage Δ
spp_analytics/__init__.py 100.00% <ø> (ø)
spp_analytics/__manifest__.py 0.00% <ø> (ø)
spp_analytics/models/__init__.py 100.00% <100.00%> (ø)
spp_analytics/models/analytics_access.py 98.05% <100.00%> (ø)
spp_analytics/models/service_aggregation.py 91.93% <100.00%> (ø)
spp_analytics/services/__init__.py 100.00% <ø> (ø)
spp_analytics/services/scope_builder.py 100.00% <ø> (ø)
spp_api_v2_gis/__manifest__.py 0.00% <ø> (ø)
spp_api_v2_gis/schemas/statistics.py 100.00% <100.00%> (ø)
spp_api_v2_simulation/__manifest__.py 0.00% <ø> (ø)
... and 34 more

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.