Skip to content

Add comprehensive test coverage for event handling and filtering#6

Merged
abedurftig merged 3 commits intomainfrom
task/smartfiles-test-coverage-improvements
Jan 19, 2026
Merged

Add comprehensive test coverage for event handling and filtering#6
abedurftig merged 3 commits intomainfrom
task/smartfiles-test-coverage-improvements

Conversation

@abedurftig
Copy link
Owner

Summary

  • Add ApplicationInteractorTest (12 tests) for all event handlers
  • Add deleteDocument tests to ArchiveServiceImplTest (9 tests)
  • Add ApplicationModel filtering and selection tests (14 tests)
  • Add path separator tests to FilesServiceImplTest (3 tests)

This brings total test count from ~51 to ~89 tests, improving coverage of:

  • Critical event handling in ApplicationInteractor
  • Document lifecycle operations (delete, tags, description)
  • Filter predicate logic (search text, tag filtering)
  • Platform-specific path handling (path separator verification)

Test plan

  • All new tests pass locally
  • Existing tests continue to pass
  • CI pipeline passes

🤖 Generated with Claude Code

dasnervtdoch and others added 3 commits January 16, 2026 22:52
- Add ApplicationInteractorTest (12 tests) for all event handlers
- Add deleteDocument tests to ArchiveServiceImplTest (9 tests)
- Add ApplicationModel filtering and selection tests (14 tests)
- Add path separator tests to FilesServiceImplTest (3 tests)

This brings total test count from 51 to ~89 tests, improving
coverage of critical event handling, document lifecycle operations,
and platform-specific path handling.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Introduced FxScheduler abstraction to decouple ApplicationInteractor from
Platform.runLater(). Tests now use direct execution instead of requiring
a functional JavaFX Application Thread, which hangs indefinitely in
headless CI environments like GitHub Actions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@abedurftig abedurftig merged commit 930e1ed into main Jan 19, 2026
1 check passed
@abedurftig abedurftig deleted the task/smartfiles-test-coverage-improvements branch January 19, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants