Skip to content

Mobile-187: Logger coverage#729

Merged
justSmK merged 5 commits into
developfrom
MOBILE-187-logger-coverage
Jun 26, 2026
Merged

Mobile-187: Logger coverage#729
justSmK merged 5 commits into
developfrom
MOBILE-187-logger-coverage

Conversation

@justSmK

@justSmK justSmK commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Add MindboxLogger unit tests

justSmK added 5 commits June 26, 2026 17:46
MindboxLoggerTests was a manual PBXGroup, so each new test file required four hand-edited pbxproj entries. Convert it to a PBXFileSystemSynchronizedRootGroup (matching MindboxTests) so files added under the folder compile automatically.
Swift Testing suites covering MindboxError and the error/decodable models, the Logger/MBLogger facade, Core Data context helpers, log primitives, URL attributes and persistence internals; tags split by subsystem. Raises MindboxLogger framework line coverage from 54% to 91% via MindboxLoggerTests alone.
Convert LogStoreTrimmer/LoggerDatabaseLoader/MBLoggerCoreDataManager tests from XCTest to Swift Testing (async waits via continuations) and drop the two baseline-less measure perf tests. The manager suite is .serialized because its background-notification tests post to the global NotificationCenter that every manager observes — parallel execution would flip writesImmediately across tests. Adds a .trimming tag.
Stop FileManagerStoreURLTests deleting the shared Caches store (cross-suite flake under parallel run); make the LoggerPersistenceInternals setter round-trip assert a distinct value instead of a tautology; rename the assertion-free MBLogger tests as honest smoke tests; fix the .serialized rationale comment.
Convert both manual PBXGroups to PBXFileSystemSynchronizedRootGroups (matching MindboxTests/MindboxLoggerTests). MindboxNotificationsTests uses a generated Info.plist (GENERATE_INFOPLIST_FILE) like MindboxLoggerTests, so no membership exception is needed; TestPlans is target-less so schemes resolve plans by path.
@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor
TestsPassed ✅SkippedFailedTime ⏱
Unit tests report1199 ran1199 ✅1m 25s 711ms

@justSmK justSmK merged commit ddb7c59 into develop Jun 26, 2026
10 checks passed
@justSmK justSmK deleted the MOBILE-187-logger-coverage branch June 26, 2026 16:08
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.

1 participant