TestObserver implementation question #66
Closed
john-flanagan
started this conversation in
General
Replies: 2 comments
This comment was marked as spam.
This comment was marked as spam.
-
I don't know how I missed the comment directly above the code I highlighted 🤦 // NB: We cannot statically link/load XCTest on Apple platforms, so we dynamically load things
// instead and we limit this to debug builds to avoid App Store binary rejection. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to better understand test dependency caching. If I'm understanding correctly this code clears out the dependency cache between each test case:
swift-dependencies/Sources/Dependencies/DependencyValues.swift
Lines 355 to 397 in 51721ee
I'm just curious why the implementation is using
objc_getProtocol
,NSClassFromString
, etc when Objective-C is available rather than always usingXCTestObservationCenter.shared.addTestObserver(TestObserver())
.Beta Was this translation helpful? Give feedback.
All reactions