Comments (8)
It should more convenient specify exactly which http call should be mocked. I'm using nocilla during the development process and i would like to mock just one or two api calls that are not ready yet.
from nocilla.
no, I moved to a different library. https://github.com/AliSoftware/OHHTTPStubs
from nocilla.
Nocilla is working as expected. Your app is making an HTTP request and
Nocilla is blocking it as it should.
Now, I understand that it's not you the one making the request so you have
two options:
- Find out which method call in your app is triggering that HTTP request
(put a breakpoint in-[LSNocilla responseForRequest:]
where the
NocillaUnexpectedRequest
exception is being raised) and inspect the stacktrace) - If you cannot find it (and maybe you won't) simply stub that HTTP
request as suggested by NocillastubRequest(@"GET", @" http://gsp1.apple.com/pep/gcc");
I'd love to know more about this issue. Please, post your findings back
here.
Thanks!
from nocilla.
I've converted the test to a Xcode logical unit test, which of course made the problem go away.
from nocilla.
Having exactly the same problem. Very annoying since it seems to be apple. :(
from nocilla.
@ignazioc did you figure out how to stub only certain API calls ?
from nocilla.
@ignazioc does it support that use case ?
from nocilla.
@qbraksa yep. Only the calls that pass a custom block are stubbed
from nocilla.
Related Issues (20)
- Not able to stub cookies for normal (non-directed requests) HOT 1
- Body matcher fails to match arbitrary NSData
- Support for RestKit HOT 1
- Add 0.10.0 to CocoaPods.org HOT 1
- Synchronous Request Support
- Wait for async request to complete before stop() HOT 1
- Crash in LSHTTPStubURLProtocol - EXC_BAD_ACCESS - Specific way to stub redirects? HOT 1
- Ability to Delay a Response HOT 1
- Redirect Implementation is Inconsistent With OS Behavior
- Carthage Binaries HOT 1
- ASIHTTPRequest synchronous request with stub never ends HOT 1
- LSNocilla.sharedInstance().stop() Not working HOT 5
- Project no longer maintained? HOT 3
- Nocilla never returns the stub HOT 2
- App store rejection due to private api references HOT 3
- Use this snippet to stub the request HOT 1
- Push v0.11.0 podspec to Cocoapods HOT 2
- Swift 3 Support HOT 2
- How do I Nocilla in Swift 3? HOT 2
- SPM Support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nocilla.