Files
RSSuper/tasks/native-business-logic-migration/38-write-unit-tests-linux.md
Michael Freno 14efe072fa feat: implement cross-platform features and UI integration
- iOS: Add BackgroundSyncService, SyncScheduler, SyncWorker, BookmarkViewModel, FeedViewModel
- iOS: Add BackgroundSyncService, SyncScheduler, SyncWorker services
- Linux: Add settings-store.vala, State.vala signals, view widgets (FeedList, FeedDetail, AddFeed, Search, Settings, Bookmark)
- Linux: Add bookmark-store.vala, bookmark vala model, search-service.vala
- Android: Add NotificationService, NotificationManager, NotificationPreferencesStore
- Android: Add BookmarkDao, BookmarkRepository, SettingsStore
- Add unit tests for iOS, Android, Linux
- Add integration tests
- Add performance benchmarks
- Update tasks and documentation

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-30 23:06:12 -04:00

43 lines
1.0 KiB
Markdown

# 38. Write unit tests for Linux business logic
meta:
id: native-business-logic-migration-38
feature: native-business-logic-migration
priority: P1
depends_on: [native-business-logic-migration-35]
tags: [testing, linux]
objective:
- Write comprehensive unit tests for Linux business logic
deliverables:
- feed-parser-test.vala (already exists as parser-tests.vala)
- feed-fetcher-test.vala (already exists as feed-fetcher-tests.vala)
- database-test.vala (already exists as database-tests.vala)
- repository-test.vala (new)
- view-model-test.vala (new)
- background-sync-test.vala (new)
- search-service-test.vala (new)
- notification-service-test.vala (new)
tests:
- Unit: All test files compile
- Unit: All tests pass
- Coverage: >80% code coverage
acceptance_criteria:
- All business logic covered
- Edge cases tested
- Error cases tested
- Performance tests included
- >80% code coverage
validation:
- Run `meson test -C build`
- Check coverage report
notes:
- Use GLib's g_test framework
- Use g_assert macros
- Mock external dependencies