todo-app/test
Krzysztof kuhy Rudnicki 10a546f6d6 Split nine oversized test files under the cap
Every split is by test-group/concern, with the shared setup moved to a
sibling helper the splits import. All 313 tests are preserved -- the count
is unchanged and `test('…')` names are byte-identical to the originals
(verified by diffing the sorted name lists).

  note_repository_test      677 -> 4 files + note_repository_helpers
  capture_screen_test       660 -> 4 files + capture_screen_harness
  note_editor_test          502 -> 3 files + note_editor_harness
  port_guard_test           405 -> 3 files + port_guard_fakes
  wrapper_server_test       402 -> 2 files + wrapper_server_harness
  settings_screen_test      391 -> 2 files + settings_screen_harness
  github_mirror_screen_test 365 -> 2 files + github_mirror_harness
  notes_list_screen_test    347 -> 2 files + notes_list_harness
  analytics_service_test    300 -> 2 files + analytics_helpers

Helpers are deliberately NOT named `*_test.dart`; the runner would collect
them and fail on the missing `main()`.

Three things did not survive a mechanical split and were handled explicitly:

  * wrapper_server's `enabledOrigin` closes over the `late root` that setUp
    assigns, so a top-level function cannot see it. It is now a
    WrapperHarness class with an install() that registers the setUp/tearDown
    pair -- the only structural change in this commit.
  * note_repository's splits each repeat `setUpAll(sqfliteFfiInit)`, and
    analytics' each repeat `@TestOn('vm')`. Omitting either fails quietly
    (uninitialised sqflite / wrong platform) rather than loudly.
  * capture_screen's `recordingMock` was declared mid-file between two
    tests, so it moved to the harness rather than being dropped.

Verified: 313 tests pass (same as before the refactor), 100% coverage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-14 16:42:13 +02:00
..
analytics_event_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
analytics_flush_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
analytics_helpers.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
app_settings_test.dart Simplify capture UI behind an advanced-mode toggle, add usage analytics 2026-08-12 21:30:40 +02:00
capture_screen_advanced_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
capture_screen_editing_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
capture_screen_harness.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
capture_screen_lifecycle_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
capture_screen_sync_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
confirm_test.dart Confirm before deleting a note 2026-07-30 16:31:15 +02:00
fake_note_repository.dart Make the app compile and run for web, behind platform seams 2026-07-20 13:14:03 +02:00
fake_secure_storage.dart Store the GitHub sync token in the OS keystore, migrating off plaintext 2026-06-15 22:57:05 +02:00
firebase_backend_test.dart Fix desktop Firebase sync: seed a Google-derived session, not a dead password 2026-08-12 19:35:18 +02:00
github_device_auth_test.dart Reach 100% test coverage (capture-screen sync DI + plugin/clipboard fakes) 2026-06-15 17:11:01 +02:00
github_mirror_device_flow_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
github_mirror_harness.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
github_mirror_screen_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
google_sign_in_backend_test.dart Fix desktop Firebase sync: seed a Google-derived session, not a dead password 2026-08-12 19:35:18 +02:00
local_backup_test.dart Cut per-keystroke O(N) work to keep capture smooth at scale 2026-07-11 21:51:46 +02:00
markdown_view_test.dart Add full note view/editor with templates and Markdown render 2026-06-15 21:59:31 +02:00
note_detail_screen_test.dart Confirm before deleting a note 2026-07-30 16:31:15 +02:00
note_editor_guided_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
note_editor_harness.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
note_editor_modes_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
note_editor_wizard_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
note_repository_crud_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
note_repository_filters_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
note_repository_helpers.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
note_repository_migration_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
note_repository_streams_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
note_template_test.dart Default a bare-link draft to the freeform template 2026-07-26 22:13:26 +02:00
note_test.dart Add list filters/sort, status, priority rework, export/import, structured template 2026-06-15 16:52:59 +02:00
notes_list_filter_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
notes_list_harness.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
notes_list_screen_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
notes_markdown_test.dart Add list filters/sort, status, priority rework, export/import, structured template 2026-06-15 16:52:59 +02:00
port_guard_fakes.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
port_guard_linux_probe_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
port_guard_parsing_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
port_guard_resolve_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
run_sync_test.dart Simplify capture UI behind an advanced-mode toggle, add usage analytics 2026-08-12 21:30:40 +02:00
settings_screen_backup_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
settings_screen_harness.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
settings_screen_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
sync_service_test.dart Fix desktop Firebase sync: seed a Google-derived session, not a dead password 2026-08-12 19:35:18 +02:00
sync_settings_test.dart Point notes sync at the consolidated syncs monorepo 2026-07-10 14:04:05 +02:00
sync_state_factory_io_test.dart Sync through Firebase, mirroring to GitHub, and stop re-downloading peers 2026-08-04 23:36:24 +02:00
theme_test.dart warm-tint the unified-design-system palette, fix design audit violations 2026-07-22 18:56:45 +02:00
wrapper_server_harness.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
wrapper_server_provisioning_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00
wrapper_server_static_test.dart Split nine oversized test files under the cap 2026-08-14 16:42:13 +02:00