Git Product home page Git Product logo

Comments (4)

depoon avatar depoon commented on August 11, 2024 1

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.

depoon avatar depoon commented on August 11, 2024

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.

tobias-philipp avatar tobias-philipp commented on August 11, 2024

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.

depoon avatar depoon commented on August 11, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.