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...
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
Create HTTP mocks with WireMock’s REST API from any language for deterministic testing a...
FakeQL home page
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
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
- tags: node.js, mocking, testing, javascript, fake-data
- :octocat: source code
RequestBin
Inspect and debug webhook requests sent by your clients or third-party APIs.
httpbin
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.
- tags: rest, testing, mocking
- :octocat: source code
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
- tags: rest, testing, mocking
- :octocat: source code
Request Baskets
https://github.com/darklynx/request-baskets
Service to collect HTTP requests and inspect them via RESTful API or web UI.
- tags: rest, testing, mocking
- :octocat: source code
counterfeiter
https://github.com/maxbrunsfeld/counterfeiter
Tool for generating self-contained mock objects.
- tags: go, testing, mocking
- :octocat: source code
go-sqlmock
https://github.com/DATA-DOG/go-sqlmock
Mock SQL driver for testing database interactions.
- tags: go, testing, mocking
- :octocat: source code
go-txdb
https://github.com/DATA-DOG/go-txdb
Single transaction based database driver mainly for testing purposes.
- tags: go, testing, mocking
- :octocat: source code
gock
Versatile HTTP mocking made easy.
- tags: go, testing, mocking
- :octocat: source code
gomock
https://github.com/golang/mock
Mocking framework for the Go programming language.
- tags: go, testing, mocking
- :octocat: source code
govcr
https://github.com/seborama/govcr
HTTP mock for Golang: record and replay HTTP interactions for offline testing.
- tags: go, testing, mocking
- :octocat: source code
hoverfly
https://github.com/SpectoLabs/hoverfly
HTTP(S) proxy for recording and simulating REST/SOAP APIs with extensible middleware and easy-to-use CLI.
- tags: go, testing, mocking
- :octocat: source code
httpmock
https://github.com/jarcoal/httpmock
Easy mocking of HTTP responses from external resources.
- tags: go, testing, mocking
- :octocat: source code
minimock
https://github.com/gojuno/minimock
Mock generator for Go interfaces.
- tags: go, testing, mocking
- :octocat: source code
mockhttp
https://github.com/tv42/mockhttp
Mock object for Go http.ResponseWriter.
- tags: go, testing, mocking
- :octocat: source code
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.
- tags: python, testing, mocking
- :octocat: source code
httmock
https://github.com/patrys/httmock
A mocking library for requests for Python 2.6+ and 3.2+.
- tags: python, testing, mocking
- :octocat: source code
httpretty
https://github.com/gabrielfalcao/HTTPretty
HTTP request mock tool for Python.
- tags: python, testing, mocking
- :octocat: source code
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.
- tags: python, testing, mocking
- :octocat: source code
responses
https://github.com/getsentry/responses
A utility library for mocking out the requests Python library.
- tags: python, testing, mocking
- :octocat: source code
VCR.py
https://github.com/kevin1024/vcrpy
Record and replay HTTP interactions on your tests.
- tags: python, testing, mocking
- :octocat: source code
JMockit
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.
- tags: java, testing, mocking
- :octocat: source code
MockServer
Allows mocking of systems integrated with HTTPS.
Moco
https://github.com/dreamhead/moco
Concise web services for stubs and mocks.
- tags: java, testing, mocking
- :octocat: source code
PowerMock
https://github.com/jayway/powermock
Mocks static methods, constructors, final classes and methods, private methods, and removal of static initializers.
- tags: java, testing, mocking
- :octocat: source code
WireMock
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
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
- :calendar: published on: 2007-01-02
- tags: mocking, testing, extreme-programming, tdd, stub
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
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...
- tags: testing, mocking
- :octocat: source code
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
...
- tags: node.js, mocking, testing
- :octocat: source code