GithubHelp home page GithubHelp logo

pombredanne / mountebank Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bbyars/mountebank

0.0 1.0 0.0 4.09 MB

Over the wire test doubles

Home Page: http://www.mbtest.org

License: MIT License

Ruby 0.68% JavaScript 37.40% Shell 0.24% Batchfile 0.03% HTML 61.13% CSS 0.52%

mountebank's Introduction

Welcome, friend

mountebank is the only open source service virtualization tool that competes with the commercial offerings in terms of protocol diversity, capability, and performance. Here's what Capital One wrote about their mobile cloud migration:

In fact, halfway through we discovered our corporate mocking software couldn’t handle the sheer amount of performance testing we were running as part of this effort (we completely crushed some pretty industrial enterprise software in the process). As a result, we made the call to move the entire program over to a Mountebank OSS-based solution with a custom provision to give us the ability to expand/shrink our mocking needs on demand.

mountebank is the first open source tool to provide cross-platform, multi-protocol test doubles over the wire. Just point your application to mountebank instead of the real dependency, and test like you would with traditional stubs and mocks.

At the moment, the following protocols are supported:

  • http
  • https
  • tcp (text and binary)
  • smtp

mountebank supports mock verification, stubbing with advanced predicates, JavaScript injection, and record-playback through proxying.

how it works

See getting started guide for more information.

Install and Run

npm

Install:

npm install -g mountebank

Billions of other install options are also available with no platform dependencies.

Run:

mb

There are a number of command line options if you need to customize mountebank.

Mountebank as a system daemon

You can also configure mountebank to run as a unix system daemon. A sample ansible playbook and systemd configuration file is available here (Tested on RHEL7 and Centos7).

Learn More

After installing and running, view the docs in your browser at http://localhost:2525, or visit the public site.

You can always learn more and support mountebank development by buying the book:

Testing Microservices with Mountebank

Goals

mountebank has the following goals:

  • Trivial to get started
    • mountebank is easy to install, without any platform dependencies. mountebank aims for fun and comprehensive documentation with lots of examples, and a nice UI that lets you explore the API interactively.
  • A platform, not just a tool
    • mountebank aims to be fully cross-platform, with native language bindings. Servers are extensible through scripting.
  • Powerful
    • mountebank is the only open source stubbing tool that is non-modal and multi-protocol. Commercial "service virtualization" solutions exist, but their licensed platforms make it hard to move the tests closer to development and can even require a specialized IDE. mountebank provides service virtualization free of charge without any platform constraints.

Not all of mountebank's goals are currently implemented, but fear not, for he has a team of top-notch open source developers, and they are legion.

Roadmap and Support

mountebank is used by a large number of companies and I think it's important to convey my best guess as to what the feature roadmap is. I've adopted github tools to manage the roadmap. Specifically, the Roadmap project page shows the features by release. I generally re-prioritize and update the ETAs each release. I'm in the middle of writing the mountebank book at the moment too, so please be patient.

Visit the Google group for any support questions. Don't be shy!

mountebank is provided free of charge and maintained in my free time. As such, I'm unable to make any kind of guarantees around either support turn-around time or release dates. If your company has commitments that require more confidence and are willing to pay a reasonable services fee to obtain that confidence, you can contact me directly at [email protected].

Build Status

Test Coverage Codacy Badge Code Climate bitHound Overall Score

Node Version Ubuntu 12.04 CentOS 6.7 OS X Mavericks Windows Server 2012
npm v8 Build Status (not tested) Build Status Build status
npm v6 (LTS) Build Status (not tested) Build Status Build status
npm v4 Build Status (not tested) Build Status Build status
OS package v6 Build Status (not tested Build Status N/A
Self-contained archive v6 Build Status (not tested) Build Status Build status
(Performance) v6 Build Status (not tested) (not tested) (not tested)

Building

./build should do the trick on Mac and Linux, and build.bat on Windows, assuming you have at least node 4.0. If not, yell at me.

There are some tests that require network access (grunt airplane ignores them in case that offends your moral sensibilities). A few of these tests verify the correct behavior under DNS failures. If your ISP is kind enough to hijack the NXDOMAIN DNS response in an attempt to allow you to conveniently peruse their advertising page, those tests will fail. I suggest that, under such circumstances, you talk to your ISP and let them know that their policies are causing mountebank tests to fail. You can also run grunt airplane, which will avoid tests requiring your DNS resolver.

Contributing

Contributions are welcome! Some tips for contributing are in the contributing link that spins up when you run mb. I have a liberal policy accepting pull requests - I'd rather you sent them even if you can't figure out how to get the build working, etc. I'm also available via Skype or something similar to help you get started. Feel free to reach me at [email protected].

mountebank's People

Contributors

andhadley avatar bbyars avatar bezda avatar cebiggs avatar distributedlife avatar greenkeeper[bot] avatar iamam34 avatar jamiegeddes avatar jasonareid avatar karloskalcium avatar louiscelier avatar manojlds avatar mario54 avatar mattherman avatar meare avatar moodmosaic avatar ndrwdn avatar njenan avatar paulphillips-va avatar prayerslayer avatar quad avatar rooky2k avatar ruudk avatar shubheksha avatar stkac55 avatar thejamesthomas avatar tpbrown avatar vienin avatar vocatan avatar zedar 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.