Replies: 1 comment 1 reply
-
Hi @andwrobs, have you tried writing an integration test and run into any problems so far? That might help guide the discussion. It is of course possible to use live dependencies in a TCA unit test. You can just override the dependencies on the let store = TestStore(…) {
$0.authClient = .liveValue
} However, from what I understand of Firebase there is a decent amount of bootstrapping necessary to get it going. IIRC you need an info.plist prepared and then to call some configuration methods at the entry point of the application. I'm guessing you will need to repeat all of that in your test too. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi TCA friends,
Does anyone have any general recommendations for implementing integration tests in a TCA app? My goal is to test my app's live FirebaseAuth signup flow. Thus far, haven't really found an example of TCA test code that attempts this sort of live testing.
And just to be clear to any readers, I'm using the term "integration tests" in the way that was referenced in a previous discussion here: #1975 (reply in thread)
Beta Was this translation helpful? Give feedback.
All reactions