nigig-org/crates/apps/map/tests
andodeki 88996e1abd
Some checks failed
repo hygiene / hygiene (push) Has been cancelled
nigig-map / test (push) Has been cancelled
test(map): add comprehensive integration tests for NigigMapView
Added 60+ integration tests covering:
- Widget initialization and default state
- Theme compilation and switching (light/dark)
- Tile scheduling and key generation
- Overlay state management (markers, routes, puck)
- Viewport calculations (zoom limits, center normalization, wrap-around)
- Event handling logic (zoom delta, pan delta, pinch zoom)
- Coordinate conversions (lon/lat to tile coords and back)
- Performance benchmarks (tile loading, overlay rendering)
- Error handling (invalid coords, empty routes)
- Accessibility (keyboard navigation, focus management)
- Offline mode (MBTiles path validation)
- Complete user journey scenarios
- Multi-touch gestures
- Search and navigation workflows

These tests complement the existing 111 UI tests in ui.rs by testing
the internal logic and state management of NigigMapView at a lower level,
without requiring a full Makepad UI runtime.

Total test coverage for view.rs: 111 UI tests + 60+ integration tests = 170+ tests
2026-08-16 19:00:45 +00:00
..
makepad_test_app build: pin every git dependency to a full 40-character SHA (Phase 0.2) 2026-08-16 18:35:39 +00:00
MAKEPAD_TESTING_GUIDE.md test(map): add Makepad visual regression tests (Phase 6) 2026-07-27 17:01:25 +00:00
makepad_visual_tests.rs test(map): add Makepad visual regression tests (Phase 6) 2026-07-27 17:01:25 +00:00
nigig_map_view_integration.rs test(map): add comprehensive integration tests for NigigMapView 2026-08-16 19:00:45 +00:00
render_graph_tests.rs refactor(map): implement trait-based render graph (Phase 3) 2026-07-27 16:17:51 +00:00
tile_decode_integration.rs fix(map): increase MAX_ELEMENTS_PER_TILE to 250k and add CI workflow 2026-07-28 20:41:02 +00:00
ui.rs fix: use re-exported makepad-test from makepad-widgets 2026-07-31 19:49:54 +00:00