Should you wrap XCTAssertNoDifference.swift inside #if DEBUG ? #13
-
Hi guys, Since XCTAssertNoDifference.swift imports XCTestDynamicOverlay, I guess it should be wrapped inside #if DEBUG ? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @alejandrogarin, in the dynamic overlay library we provide an empty implementation of Are you getting compiler errors when building for release? Can you make sure you are using the newest version by updating your packages? |
Beta Was this translation helpful? Give feedback.
-
Kind of related and I'm struggling to find an answer: XCTAssertNoDifference("Blob", "Blob Sr.") -> ✅ The diff in |
Beta Was this translation helpful? Give feedback.
Hey @alejandrogarin, in the dynamic overlay library we provide an empty implementation of
XCTFail
when not inDEBUG
:https://github.com/pointfreeco/xctest-dynamic-overlay/blob/0ec2d710978df8a73ae788b9897d2c189880de0f/Sources/XCTestDynamicOverlay/XCTFail.swift#L74-L93
Are you getting compiler errors when building for release? Can you make sure you are using the newest version by updating your packages?