Changing Dependency context for UI Testing #1583
Unanswered
YamiDaisuke
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Hi @YamiDaisuke, thanks for bringing this up. We have only used XCUITest a small amount, so we have some questions. What are the problems you are having while running the UI test? Are you getting test failures from the dependencies? Or is it because the test value of |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have a project using the old Reducer and wanted to migrate to the ReducerProtocol. But we have a problem running our UI Tests. Previously we use this:
Now we are trying to rely on the Dependency context which works perfect for Previews and Unit tests but for UI Testing we had to do this to make it work:
We are not sure if there is a better approach. We don't like that we have to provide alternatives to the dependencies provided by TCA (E.G.:
mainQueue
,date
) to avoid falling into the unimplemented versions, so maybe there is a better way to do it. We use thetest
context for UI Test because we don't want to reach our backend we want to have fixed and predictable valuesBeta Was this translation helpful? Give feedback.
All reactions