Comments (4)
Hi @manyakin @xpureTobias ,
I've merged the feature to allow developers to mock multiple response for the same path. Note that this requires you to take note of the order of requests being fired and match the respective mock responses in the same order
from swiftlocalhost.
Presently this library does not have this feature.
You will need to redefine the requests in between your test steps to override the mock response.
Meanwhile ll try to build something for you
from swiftlocalhost.
Hey, is there some news on this question? We basically have a similar case where we call the same endpoint twice and need different responses within one UI test.
I looked at the Criollo Server and saw that the routes
are stored in a readonly array. There is probably no way to remove a route. :(
from swiftlocalhost.
@xpureTobias Sorry for the long wait.
Kindly help review the latest PR. #14
use the following in your podfile
pod 'SwiftLocalhost', :git => 'https://github.com/depoon/SwiftLocalhost.git', :branch => 'multiple-response-per-path-route'
I will merge the branch in 1 week time, or earlier if you can give me your feedback.
from swiftlocalhost.
Related Issues (8)
- Override mock response for path HOT 2
- How to mock the same path but data in request's body are different ? HOT 2
- Support for http methods like PATCH
- Support For Swift Package Manager HOT 1
- Support routing depending on request params like body and headers
- open ssl build error on M1 Mac HOT 4
- Body outgoing request HOT 2
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 swiftlocalhost.