488a8f349b
test(backend): raise coverage to 95%+ statements and branches (97.8%/95.0%)
...
- ~60 new/extended test files across api, core, plugins, services, schemas:
routes, superset clients, task_manager, lineage, git, translate,
dashboard-testing, load-testing, migration, llm_analysis, scheduler, ssl
- .coveragerc: enable branch coverage; exclude src/__tests__ (test files)
and src/scripts (CLI/ops tools) from the denominator
- bug fixes found while testing:
* settings: PUT /settings/reports registered under duplicated prefix
* schemas/lineage: FleetReportDTO missing run_status (route always 500)
* dashboard_testing/baseline_inheritance: visual entry read wrong field
* superset_client/_databases: logger extra name shadowed LogRecord attr
* routes/datasets: _yaml_string_paths recursion without yield from
* translate/sql_generator: restore explicit-type timestamp contract
* baseline_catalog: remove unreachable dashboard_id fallback
- conftest fixes: pytest_plugins to rootdir conftest (pytest 9), test
filename collision, TMPDIR-safe integration fixtures
2026-08-19 17:14:32 +03:00
01332ad5c7
test(backend): add 55+ test files to push coverage to 98%
...
Subagents delivered tests across all uncovered backend modules:
Schemas (100%): agent, auth, health, profile, settings, validation
Services (98-100%): auth, profile, health, llm, mapping, resource,
security, git, superset_lookup, sql_table_extractor, rbac
API routes (new): auth, admin, health, environments, plugins,
dashboards (helpers, projection, actions, listing),
git (config, deps, env, helpers)
Clean Release (100%): DTO, facade, policy_engine, stages,
repos, preparation, source_isolation, compliance
Git services: base, remote_providers
Agent module: app, run, middleware, langgraph_setup
Core: trace, cleanup, ws_log_handler, timezone, auth (config/oauth/security), matching
Reports: normalizer, report_service, type_profiles
Notifications: service, providers
Also:
- .gitignore: add .coverage, *.cover, coverage-* dirs
- src/schemas/auth.py: fix AD group DN regex (comma in CN=...)
- Remove co-located src/services/__tests__/ (caused pytest module collision)
2026-06-15 13:55:57 +03:00