Write unit tests for shared library #13

Open
opened 2026-01-27 07:08:46 +00:00 by maj · 0 comments
Owner

Comprehensive unit test suite using Google Test for all shared library components.

Tasks

  • Set up Google Test framework in CMake
  • Create test directory structure
  • Write tests for WebDAVClient
  • Write tests for AuthManager
  • Write tests for UploadManager
  • Write tests for FolderManager
  • Write tests for FolderHistory
  • Create mock HTTP server for integration tests
  • Set up test fixtures
  • Configure test data files
  • Add tests to CI pipeline
  • Generate coverage report

Coverage Goals

  • WebDAVClient: >80%
  • AuthManager: >90%
  • UploadManager: >75%
  • FolderManager: >80%
  • FolderHistory: >85%

Acceptance Criteria

  • All components have unit tests
  • Tests run in CI pipeline
  • Mock HTTP server working
  • Coverage meets goals
  • Tests well-documented
  • Fast test execution (<30 seconds)
Comprehensive unit test suite using Google Test for all shared library components. ## Tasks - [ ] Set up Google Test framework in CMake - [ ] Create test directory structure - [ ] Write tests for WebDAVClient - [ ] Write tests for AuthManager - [ ] Write tests for UploadManager - [ ] Write tests for FolderManager - [ ] Write tests for FolderHistory - [ ] Create mock HTTP server for integration tests - [ ] Set up test fixtures - [ ] Configure test data files - [ ] Add tests to CI pipeline - [ ] Generate coverage report ## Coverage Goals - WebDAVClient: >80% - AuthManager: >90% - UploadManager: >75% - FolderManager: >80% - FolderHistory: >85% ## Acceptance Criteria - [ ] All components have unit tests - [ ] Tests run in CI pipeline - [ ] Mock HTTP server working - [ ] Coverage meets goals - [ ] Tests well-documented - [ ] Fast test execution (<30 seconds)
maj added this to the Milestone 2: Shared Library (libnextcloud) milestone 2026-01-27 07:08:46 +00:00
maj added the testinglibrarypriority:high labels 2026-01-27 07:08:46 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: maj/nextcloud-share#13