Sam
06/14/2022, 3:38 PMMichal Klimczak
06/14/2022, 5:25 PMSam
06/14/2022, 5:47 PMMichal Klimczak
06/14/2022, 5:48 PMMichal Klimczak
06/14/2022, 5:49 PMMichal Klimczak
06/14/2022, 5:50 PMSam
06/14/2022, 7:14 PMFilip Wiesner
10/07/2022, 12:53 PMSam
10/07/2022, 12:54 PMFilip Wiesner
10/07/2022, 1:00 PMMichal Klimczak
10/07/2022, 1:21 PMFilip Wiesner
10/07/2022, 1:30 PMMichal Klimczak
10/07/2022, 1:39 PMprotocol from kotlin -> annotated extension of that protocol (just so you have something to add the annotation to) -> generated extension which mocks behaviors of the protocol
George Kylafas
02/10/2023, 3:19 PMinterface SharedCodeInterface
2. manually convert those `interface`s to Swift protocols and put them in files under dir MockingSupport/<shared module's framework name>/
, e.g. public protocol SharedCodeInterface { ... }
3. write protocols in our tests that conform to the protocols of step 2, e.g. public protocol TestSharedCodeInterface : SharedCodeInterface {}
4. use the protocols of step 4 in our tests, i.e. mock(TestSharedCodeInterface.self)
5. set mockingbird's run script in Build phases to generate mock classes for code in tests too (i.e. --targets appTarget testsTarget
)