Code Monkey home page Code Monkey logo

monorailswift's Introduction

Monorail

Version License Platform

Introduction

Monorail is a testing tool to log, record and replay network interactions when doing manual and automatic testing.

Inspired by pact.io but the Monorail can be use not only for unit test but also manual test, stub integration testing and offline demo.

Features

  1. All features work out of box with minimum impact to product code.
  2. Intercept network call and output to debug terminal. Works out of box with native api and most of 3rd SDKs.
  3. Save network interactions into json file
  4. Playback saved network interactions response. Remove the dependence of backend server when doing development or offline demo.

When to use

  1. Troubleshooting, build-in mini network sniffer, print api request and response so developer can see clearly what is sending and receieving.
  2. When manual testing, save and share log to your workstation with shake and click.
  3. Playback the saved log file without backend.
  4. CI
    1. Use saved or manually created log file as stub, run test without backend.
    2. Save network interactions to file when running integration tests
    3. Easely switch between local stub and real backend

How to use

Monorail.enableLogger()

Monorail.writeLog()

Monorail.enableReader(from: demo1)

Check MonorailSwift example project for details.

Tools

Tools under monorailswift⁩/⁨MonorailSwift⁩Example/Helper⁩/Monorail⁩

Download example project come with the MonorailSwift repository. Run the app in simulator and press keyboard shortcut Cmd + Ctrl + z

Communication

Author

[email protected]

License

Monorail is available under the MIT license. See the LICENSE file for more info.

monorailswift's People

Contributors

river2202 avatar

Watchers

 avatar

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.