You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use a lot of mocks in the application both for Unit Testing, UI Testing and SwiftUI previews.
Would be nice to find a way to generate these mocks automatically so that we can both have spies for the values when they called/updated, for testing purposes, and a way to control the return values, so that we can still use them to tweak and change the behaviours to test for different given cases. And all of this without the need of writing the mocks ourselves.
We should use a mock generator system that isn't necessarily tied to XCTests, so that we can still use the mocks in the original target, and use them alongside UITests, Unit Tests and SwiftUI previews.
The text was updated successfully, but these errors were encountered:
This has been proved to be easily possible! However for a while we won't need new mocks, and migrating to the new generated ones can take a bit, so we will give a higher priority to other tasks before completing this.
We use a lot of mocks in the application both for Unit Testing, UI Testing and SwiftUI previews.
Would be nice to find a way to generate these mocks automatically so that we can both have spies for the values when they called/updated, for testing purposes, and a way to control the return values, so that we can still use them to tweak and change the behaviours to test for different given cases. And all of this without the need of writing the mocks ourselves.
We should use a mock generator system that isn't necessarily tied to XCTests, so that we can still use the mocks in the original target, and use them alongside UITests, Unit Tests and SwiftUI previews.
The text was updated successfully, but these errors were encountered: