Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
Wasn't able to find how to integrate SwiftyMocky after installation using SPM in Issues or in documentation, also tried to find it on stackoverflow but with no luck.
Is it correct that after adding SwiftyMocky as swift package dependency to the xcode project it is necessary to add swiftymocky module to unit test target and then add a Run Script build phase like:
# To setup initial Mockfile
swiftymocky setup
# To generate mocks
swiftymocky generate
Could someone help figure out which path to use for swiftymocky executable if it was installed using SPM?
Also, I noticed that after adding SwiftyMocky framework as a dependency to unit test target in Link Binary with libraries it can't be found in XCTestCase related unit test file if you use import
I didn't want to use CLI from brew or mint, because I see that binary is present already in SPM
Wasn't able to find how to integrate
SwiftyMocky
after installation using SPM in Issues or in documentation, also tried to find it on stackoverflow but with no luck.Is it correct that after adding
SwiftyMocky
as swift package dependency to the xcode project it is necessary to add swiftymocky module to unit test target and then add aRun Script
build phase like:Could someone help figure out which path to use for
swiftymocky
executable if it was installed using SPM? Also, I noticed that after adding SwiftyMocky framework as a dependency to unit test target inLink Binary with libraries
it can't be found inXCTestCase
related unit test file if you useimport
I didn't want to use CLI from brew or mint, because I see that binary is present already in SPM