Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use XCTestDynamicOverlay #345

Open
ohitsdaniel opened this issue May 5, 2023 · 0 comments
Open

Use XCTestDynamicOverlay #345

ohitsdaniel opened this issue May 5, 2023 · 0 comments

Comments

@ohitsdaniel
Copy link
Contributor

ohitsdaniel commented May 5, 2023

Inspired by the work on The Composable Architecture and testing tools, I would suggest replacing the direct dependency on XCTest with XCTestDynamicOverlay. This allows to include mocks in the app target (and any non-test target), as it hides the actual XCTest implementation behind an overlay and only uses XCTest, when it can be depended on.

Steps needed:
[ ] Write a podspec for XCTestDynamicOverlay and put it on the Cocoapods package registry
[ ] Modify the template to depend on XCTestDynamicOverlay
[ ] Discuss if dropping support for macOS 10.13 / 10.14 is a feasible option
  - Option A: bump minimum deployment target
  - Option B: fork XCTestDynamicOverlay and drop the minimum deployment target down to match SwiftyMocky's minimum deployment targets

This would also make prototyping a bit easier, as the test assertions would be no-ops in app builds.

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

No branches or pull requests

1 participant