Problem
The current tests cover date conversion, basic version comparisons, release-note storage, and environment selection, but not the main update-check flow, retries, built-in conditions, concurrency, presentation adapters, or macOS-specific behavior.
Scope
- Add state-transition tests for every
UpdateCheckResult path.
- Use injected HTTP, clock, and state dependencies so tests never call external services.
- Add coverage for all built-in version-check and review-request conditions.
- Configure a macOS test target or scheme with meaningful testables.
- Replace assertions that cannot fail, such as checking a non-optional
Int for nil.
Dependencies
Acceptance criteria
Tests
- This issue is complete when the new suites pass repeatedly with randomized test order where supported.
Relevant files
Framework/SwiftyUpdateKitTests/
Framework/SwiftyUpdateKit.xcodeproj/xcshareddata/xcschemes/
Problem
The current tests cover date conversion, basic version comparisons, release-note storage, and environment selection, but not the main update-check flow, retries, built-in conditions, concurrency, presentation adapters, or macOS-specific behavior.
Scope
UpdateCheckResultpath.Intfor nil.Dependencies
Acceptance criteria
Tests
Relevant files
Framework/SwiftyUpdateKitTests/Framework/SwiftyUpdateKit.xcodeproj/xcshareddata/xcschemes/