Code Quality Rank: L4
Programming language: Java
License: MIT License
Tags: Testing    
Latest version: v1.0.0

Moco alternatives and similar libraries

Based on the "Testing" category.
Alternatively, view Moco alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Moco or a related project?

Add another 'Testing' Library



Build Status HitCount

Moco is an easy setup stub framework.

Latest Release

  • 1.3.0

More details in [Release Notes](moco-doc/ReleaseNotes.md)

User Voice


Integration, especially based on HTTP protocol, e.g. web service, REST etc, is wildly used in most of our development.

In the old days, we just deployed another WAR to an application server, e.g. Jetty or Tomcat etc. As we all know, it's so boring to develop a WAR and deploy it to any application server, even if we use an embeded server. And the WAR needs to be reassembled even if we just want to change a little bit.

Quick Start

  • Download Standalone Moco Runner
  • Write your own configuration file to describe your Moco server configuration as follow:

    "response" :
        "text" : "Hello, Moco"


  • Run Moco HTTP server with the configuration file.

    java -jar moco-runner-<version>-standalone.jar http -p 12306 -c foo.json
  • Now, open your favorite browser to visit http://localhost:12306 and you will see "Hello, Moco".


  • More [Usages](moco-doc/usage.md)
  • Detailed [HTTP APIs](moco-doc/apis.md) or [Socket APIs](moco-doc/socket-apis.md)
  • Detailed [REST API](moco-doc/rest-apis.md)
  • Detailed [Websocket API](moco-doc/websocket-apis.md)
  • [Global Settings](moco-doc/global-settings.md) for multiple configuration files.
  • [Command Line Usages](moco-doc/cmd.md)
  • [Extend Moco](moco-doc/extending.md) if current API does not meet your requirement.


Make sure you have JDK and Gradle installed.

  • Clone Moco
git clone [email protected]:dreamhead/moco.git
  • Build Moco
./gradlew build
  • Build uberjar
./gradlew uberjar
  • Check code before commit
./gradlew check


Check out what you can help [here](moco-doc/plan.md) if you do not have any existing idea.

Copyright and license

Copyright 2012-2022 ZHENG Ye

Licensed under MIT License (the "License"); You may obtain a copy of the License in the LICENSE file, or at:


Powered By

*Note that all licence references and agreements mentioned in the Moco README section above are relevant to that project's source code only.