Kakapo.js - :bird: Next generation mocking framework in Javascript

  •        5

Kakapo its a full featured http mocking library, he allows you to entirely replicate your backend logic in simple and declaritive way directly in the browser. This way you can easily prototype and develop the whole Application without backend and just deactivate Kakapo when you go production. In order to achieve that Kakapo gives you a set of utilities like Routing, Database, Response, Request and so on... Use the kakapo router to declare two custom routes and returning custom data.

https://github.com/devlucky/Kakapo.js#readme
https://github.com/devlucky/Kakapo.js

Dependencies:

@types/lodash : ^4.14.106
faker : ^3.1.0
lodash : ^4.2.0
parse-url : 1.3.0
path-match : 1.2.4
path-to-regexp : ^1.2.1
query-string : 4.1.0

Tags
Implementation
License
Platform

   




Related Projects

Kakapo - 🐤Dynamically Mock server behaviors and responses in Swift

  •    Swift

Dynamically Mock server behaviors and responses. Kakapo is a dynamic mocking library. It allows you to replicate your backend APIs and logic. With Kakapo you can easily prototype your application based on your API specifications.

OHHTTPStubs - Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!

  •    Objective-C

It works with NSURLConnection, NSURLSession, AFNetworking, Alamofire or any networking framework that use Cocoa's URL Loading System. OHHTTPStubs headers are fully documented using Appledoc-like / Headerdoc-like comments in the header files. You can also read the online documentation here.

mountebank - Over the wire test doubles

  •    HTML

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.

mockery - Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework

  •    PHP

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending. Mockery is released under a New BSD License.

FakeRest - Patch fetch/XMLHttpRequest to fake a REST API server in the browser, based on JSON data.

  •    Javascript

Intercept AJAX calls to fake a REST server based on JSON data. Use it on top of Sinon.js (for XMLHTTPRequest) or fetch-mock (for fetch) to test JavaScript REST clients on the browser side (e.g. single page apps) without a server. FakeRest uses a standard REST flavor, described below.


OCMockito - Mockito for Objective-C: creation, verification and stubbing of mock objects

  •    Objective-C

OCMockito is an iOS and Mac OS X implementation of Mockito, supporting creation, verification and stubbing of mock objects. Mock objects are always "nice," recording their calls instead of throwing exceptions about unspecified invocations. This makes tests less fragile.

Mockito - Most popular Mocking framework for unit tests written in Java

  •    Java

Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. Mockito doesn’t give you hangover because the tests are very readable and they produce clean verification errors.

Cuckoo - Boilerplate-free mocking framework for Swift!

  •    Swift

Cuckoo was created due to lack of a proper Swift mocking framework. We built the DSL to be very similar to Mockito, so anyone using it in Java/Android can immediately pick it up and use it. Cuckoo has two parts. One is the runtime and the other one is an OS X command-line tool simply called CuckooGenerator.

json-server - Get a full fake REST API with zero coding in less than 30 seconds

  •    Javascript

JSON Server is a full fake REST API with zero coding in less than 30 seconds Created with <3 for front-end developers who need a quick back-end for prototyping and mocking.

testdouble.js - A minimal test double library for TDD with JavaScript

  •    Javascript

Welcome! Are you writing JavaScript tests and in the market for a mocking library to fake out real things for you? testdouble.js is an opinionated, carefully-designed test double library maintained by, oddly enough, a software agency that's also named Test Double. If you practice test-driven development, testdouble.js was designed to promote terse, clear, and easy-to-understand tests. There's an awful lot to cover, so please take some time and enjoy our documentation, which is designed to show you how to make the most out of test doubles in your tests.

Pester - Pester is the ubiquitous test and mock framework for PowerShell.

  •    PowerShell

Pester is the ubiquitous test and mock framework for PowerShell. This code example lies a tiny bit, find it annotated and production ready here.

mock-require - Simple, intuitive mocking of Node.js modules.

  •    Javascript

mock-require is useful if you want to mock require statements in Node.js. I wrote it because I wanted something with a straight-forward API that would let me mock anything, from a single exported function to a standard library. The module you that you want to mock. This is the same string you would pass in if you wanted to require the module.

mmock - Mmock is an HTTP mocking application for testing and fast prototyping

  •    Go

Easy and fast HTTP mock server. Built with Go - Mmock runs without installation on multiple platforms.

mock-socket - Javascript mocking library for websockets and socket.io

  •    Javascript

To use within a node environment you can simply import or require the files directly. This option is great for phantomjs or CI environments. This project uses mocha as its test framework. Tests are located in /test and have 1 of 3 file name prefixes (functional-, issue-#, or unit-).

Dynamic Mocking Framework

  •    

This framework is my first open-source project. With this framework you can mock any public properties and methods (virtual and non-virtual). Based on DynamicObject features of Microsoft Net Framework 4. Programming language: C#

mockk - mocking library for Kotlin

  •    Kotlin

We are actively looking for contributors and co-authors. There are two ambitious goals, that look unachievable at first sight, but in my opinion is essential to win Kotlin competition and require just hard and inventive work. They are - support for Kotlin/JS and Kotlin/Native platforms. If you think you can accept one of this two challenges and join us please contact me. All you need to get started is just to add a dependency to MockK library.

mocha - Mocha is a mocking and stubbing library for Ruby

  •    Ruby

Install the latest version of the gem with the following command... Note: If you are intending to use Mocha with Test::Unit or MiniTest, you should only setup Mocha after loading the relevant test library...

moq4 - Repo for managing Moq 4.x

  •    CSharp

You can think of Linq to Mocks as "from the universe of mocks, give me one whose behavior matches this expression".Moq (pronounced "Mock-you" or just "Mock") is the only mocking library for .NET developed from scratch to take full advantage of .NET Linq expression trees and lambda expressions, which makes it the most productive, type-safe and refactoring-friendly mocking library available. And it supports mocking interfaces as well as classes. Its API is extremely simple and straightforward, and doesn't require any prior knowledge or experience with mocking concepts.

node-mocks-http - Mock 'http' objects for testing Express routing functions

  •    Javascript

Mock 'http' objects for testing Express routing functions, but could be used for testing any Node.js web server applications that have code that requires mockups of the request and response objects. This project is available as a NPM package.

mock - GoMock is a mocking framework for the Go programming language.

  •    Go

GoMock is a mocking framework for the Go programming language. It integrates well with Go's built-in testing package, but can be used in other contexts too.Alternatively, there is an online reference for the package hosted on GoPkgDoc here.