Skip to content

Should you wrap XCTAssertNoDifference.swift inside #if DEBUG ? #13

Answered by mbrandonw
alejandrogarin asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @alejandrogarin, in the dynamic overlay library we provide an empty implementation of XCTFail when not in DEBUG:

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?

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@alejandrogarin
Comment options

Answer selected by mbrandonw
Comment options

You must be logged in to vote
1 reply
@davdroman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants