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
Is it possible to add an example project to see how to setup a complete project? At the moment it is not very clear how to use Mockingjay which will prevent many developers from using it.
Reacted by Brandon H, Ariel Elkin, andrewpaulsimmons, Ivan Chirkov, Daniel Li, Priyanka Mistry, Phil Tseng, Rafael Sachetto, Arbnor Tefiki, Kateryna Sytnyk and 1 more
@paulyoung thanks for sharing, but this is insufficient, it's still not clear how to setup a basic test suite from scratch using Mockingjay and XCTest.
@kylef never mind, console output was misleading due to the test target having "Host Application" set. This seems to be xcodes preferred way now. Sorry for the confusion.
Activity
nitinalabur commentedon Jan 11, 2016
+1
paulyoung commentedon Jan 14, 2016
Mockingjay is used in Disc and Portal, both of which use MockingjayMatchers.
paulyoung commentedon Jan 14, 2016
More specifically, here's where a request is stubbed out and here's the custom matcher used.
arielelkin commentedon Mar 21, 2016
@paulyoung thanks for sharing, but this is insufficient, it's still not clear how to setup a basic test suite from scratch using Mockingjay and XCTest.
kylef commentedon May 16, 2016
There's a complete example in Mockingjay's own tests. Check out https://github.com/kylef/Mockingjay/blob/master/MockingjayTests/MockingjayTests.swift#L34-54
papertigers commentedon Jul 14, 2016
I tried to use the following with Alamofire from the example you linked @kylef
When I call the function from my api struct it returns the actual data from the web service.
Am I doing something wrong?
papertigers commentedon Jul 16, 2016
@kylef never mind, console output was misleading due to the test target having "Host Application" set. This seems to be xcodes preferred way now. Sorry for the confusion.