Trouble getting to minimum UI Test Coverage #26
Answered
by
BKrajancich
BKrajancich
asked this question in
Technical Questions
-
In what area do you have a technical challenge?Xcode, Simulator & Previews DescriptionI'm having trouble getting my code coverage up to min. 90% because XCode takes the PreviewProvider into account. What should I do? Remove all the SwiftUI previews? Or is there a way I can exclude some lines with 'PreviewProvider' keywords etc... ReproductionDeploy App Expected behaviorWant the UI tests to pass Additional contextNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Answered by
BKrajancich
Feb 5, 2023
Replies: 1 comment 1 reply
-
I ended up fixing it with this: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BKrajancich
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ended up fixing it with this:
https://www.christopherthiebaut.com/posts/exclude_swiftui_previews_from_code_coverage/