mocking.md

July 15, 2021 · View on GitHub

Bookmarks tagged [mocking]

www.codever.land/bookmarks/t/mocking

JSON Generator – tool for generating random JSON data

https://next.json-generator.com/

A JSON data generator. JSON Generator generates data according to the template and saves it. Data can be requested from server using ajax with jsonp.


When to Mock · Enterprise Craftsmanship

https://enterprisecraftsmanship.com/posts/when-to-mock/

The use of mocks in unit testing is a controversial topic (maybe less so now than several years ago). I remember how, throughout my programming career, I went from mocking almost every dependency, to...

  • :calendar: published on: 2020-04-15
  • tags: mocking

Understanding Jest Mocks. Explaining the Mock Function

https://medium.com/@rickhanlonii/understanding-jest-mocks-f0046c68e53c

When we talk about mocking in Jest, we’re typically talking about replacing dependencies with the Mock Function. In this article we’ll...

  • :calendar: published on: 2018-03-08
  • tags: jest, mocking

JSONPlaceholder - Fake online REST API for testing and prototyping

https://jsonplaceholder.typicode.com/

Free to use fake Online REST API for testing and prototyping Powered by JSON Server + LowDB


Advanced HTTP Mocking with WireMock at DevFest DC - 43min

https://www.youtube.com/watch?v=x3MvZ8DFrpE

Slides

Create HTTP mocks with WireMock’s REST API from any language for deterministic testing a...


FakeQL home page

https://fakeql.com/

Create fake data and API endpoints with Blowson.


Don't Mock What You Don't Own

https://maksimivanov.com/posts/dont-mock-what-you-dont-own/

I was refactoring specs of some Rails application when I decided to mock the class of CarierWave. I wanted to be able to check for specific…


Wiremock Home Page

http://wiremock.org/

WireMock is a simulator for HTTP-based APIs. Some might consider it a service virtualization tool or a mock server.

It enables you to stay productive when an API you depend on doesn't exist or isn't ...


GitHub - Marak/faker.js Home Page

https://github.com/marak/Faker.js/

generate massive amounts of realistic fake data in Node.js and the browser - Marak/faker.js


RequestBin

https://requestbin.com/

Inspect and debug webhook requests sent by your clients or third-party APIs.


httpbin

http://httpbin.org

HTTP request and response service - a/k/a Swiss Army Knife for HTTP.


FakeRest

https://github.com/marmelab/FakeRest

Patch XMLHttpRequest to fake a REST API client-side.


Mocky.io

http://www.mocky.io/

Free online service to create fake HTTP responses.


Swagger API Mock

https://github.com/bulkismaslom/swagger-api-mock

Mock RESTful API based on swagger schema


Request Baskets

https://github.com/darklynx/request-baskets

Service to collect HTTP requests and inspect them via RESTful API or web UI.


counterfeiter

https://github.com/maxbrunsfeld/counterfeiter

Tool for generating self-contained mock objects.


go-sqlmock

https://github.com/DATA-DOG/go-sqlmock

Mock SQL driver for testing database interactions.


go-txdb

https://github.com/DATA-DOG/go-txdb

Single transaction based database driver mainly for testing purposes.


gock

https://github.com/h2non/gock

Versatile HTTP mocking made easy.


gomock

https://github.com/golang/mock

Mocking framework for the Go programming language.


govcr

https://github.com/seborama/govcr

HTTP mock for Golang: record and replay HTTP interactions for offline testing.


hoverfly

https://github.com/SpectoLabs/hoverfly

HTTP(S) proxy for recording and simulating REST/SOAP APIs with extensible middleware and easy-to-use CLI.


httpmock

https://github.com/jarcoal/httpmock

Easy mocking of HTTP responses from external resources.


minimock

https://github.com/gojuno/minimock

Mock generator for Go interfaces.


mockhttp

https://github.com/tv42/mockhttp

Mock object for Go http.ResponseWriter.


doublex

https://pypi.python.org/pypi/doublex

Powerful test doubles framework for Python.


freezegun

https://github.com/spulec/freezegun

Travel through time by mocking the datetime module.


httmock

https://github.com/patrys/httmock

A mocking library for requests for Python 2.6+ and 3.2+.


httpretty

https://github.com/gabrielfalcao/HTTPretty

HTTP request mock tool for Python.


mock

https://docs.python.org/3/library/unittest.mock.html

(Python standard library) A mocking and patching library.


Mocket

https://github.com/mindflayer/python-mocket

Socket Mock Framework plus HTTP[S]/asyncio/gevent mocking library with recording/replaying capability.


responses

https://github.com/getsentry/responses

A utility library for mocking out the requests Python library.


VCR.py

https://github.com/kevin1024/vcrpy

Record and replay HTTP interactions on your tests.


JMockit

http://jmockit.github.io

Integration testing, API mocking and faking, and code coverage.


Mockito

https://github.com/mockito/mockito

Mocking framework that lets you write tests with a clean and simple API.


MockServer

https://www.mock-server.com

Allows mocking of systems integrated with HTTPS.


Moco

https://github.com/dreamhead/moco

Concise web services for stubs and mocks.


PowerMock

https://github.com/jayway/powermock

Mocks static methods, constructors, final classes and methods, private methods, and removal of static initializers.


WireMock

http://wiremock.org

Stubs and mocks web services.


Mockito: Why You Should Not Use InjectMocks Annotation to Autowire Fields – Ted Vinke's Blog

https://tedvinke.wordpress.com/2014/02/13/mockito-why-you-should-not-use-injectmocks-annotation-to-a...

People like the way how Mockito is able to mock Spring's auto-wired fields with the @InjectMocks annotation. When I read this post of Lubos Krnac last week, I thought I should explain why I think the ...


MockAPI docs

https://www.mockapi.io/docs

MockAPI is a simple tool that lets you easily mock up APIs, generate custom data, and preform operations on it using RESTful interface. MockAPI is meant to be used as a prototyping/testing/learning to...


Mocks Aren't Stubs

https://martinfowler.com/articles/mocksArentStubs.html

The article addresses among other things the following:

  • The Difference Between Mocks and Stubs
  • Classical and Mockist Testing
  • driving TDD

The little mocker

https://blog.cleancoder.com/uncle-bob/2014/05/14/TheLittleMocker.html

It's a conversation about mocking where the different test doubles (that is stubs, spies and mocks) and fakes are explained. The author also presents his way of "mocking" things, relying less on mocki...


mountebank - over the wire test doubles

http://www.mbtest.org/

mountebank is the first open source tool to provide cross-platform, multi-protocol test doubles over the wire. Simply point your application under test to mountebank instead of the real dependency, an...


GitHub - typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously)

https://github.com/typicode/json-server

Create a db.json file

...