Bookmarks tagged [mocking]
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.
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...
- 📆 published on: 2020-04-15
- tags: mocking
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...
https://jsonplaceholder.typicode.com/
Free to use fake Online REST API for testing and prototyping Powered by JSON Server + LowDB
https://www.youtube.com/watch?v=x3MvZ8DFrpE
Create HTTP mocks with WireMock’s REST API from any language for deterministic testing a...
Create fake data and API endpoints with Blowson.
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 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 ...
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
- source code
Inspect and debug webhook requests sent by your clients or third-party APIs.
HTTP request and response service - a/k/a Swiss Army Knife for HTTP.
https://github.com/marmelab/FakeRest
Patch XMLHttpRequest to fake a REST API client-side.
- tags: rest, testing, mocking
- source code
Free online service to create fake HTTP responses.
https://github.com/bulkismaslom/swagger-api-mock
Mock RESTful API based on swagger schema
- tags: rest, testing, mocking
- source code
https://github.com/darklynx/request-baskets
Service to collect HTTP requests and inspect them via RESTful API or web UI.
- tags: rest, testing, mocking
- source code
https://github.com/maxbrunsfeld/counterfeiter
Tool for generating self-contained mock objects.
- tags: go, testing, mocking
- source code
https://github.com/DATA-DOG/go-sqlmock
Mock SQL driver for testing database interactions.
- tags: go, testing, mocking
- source code
https://github.com/DATA-DOG/go-txdb
Single transaction based database driver mainly for testing purposes.
- tags: go, testing, mocking
- source code
Versatile HTTP mocking made easy.
- tags: go, testing, mocking
- source code
https://github.com/golang/mock
Mocking framework for the Go programming language.
- tags: go, testing, mocking
- source code
https://github.com/seborama/govcr
HTTP mock for Golang: record and replay HTTP interactions for offline testing.
- tags: go, testing, mocking
- source code
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
- source code
https://github.com/jarcoal/httpmock
Easy mocking of HTTP responses from external resources.
- tags: go, testing, mocking
- source code
https://github.com/gojuno/minimock
Mock generator for Go interfaces.
- tags: go, testing, mocking
- source code
https://github.com/tv42/mockhttp
Mock object for Go http.ResponseWriter.
- tags: go, testing, mocking
- source code
https://pypi.python.org/pypi/doublex
Powerful test doubles framework for Python.
https://github.com/spulec/freezegun
Travel through time by mocking the datetime module.
- tags: python, testing, mocking
- source code
https://github.com/patrys/httmock
A mocking library for requests for Python 2.6+ and 3.2+.
- tags: python, testing, mocking
- source code
https://github.com/gabrielfalcao/HTTPretty
HTTP request mock tool for Python.
- tags: python, testing, mocking
- source code
https://docs.python.org/3/library/unittest.mock.html
(Python standard library) A mocking and patching library.
https://github.com/mindflayer/python-mocket
Socket Mock Framework plus HTTP[S]/asyncio/gevent mocking library with recording/replaying capability.
- tags: python, testing, mocking
- source code
https://github.com/getsentry/responses
A utility library for mocking out the requests Python library.
- tags: python, testing, mocking
- source code
https://github.com/kevin1024/vcrpy
Record and replay HTTP interactions on your tests.
- tags: python, testing, mocking
- source code
Integration testing, API mocking and faking, and code coverage.
https://github.com/mockito/mockito
Mocking framework that lets you write tests with a clean and simple API.
- tags: java, testing, mocking
- source code
Allows mocking of systems integrated with HTTPS.
https://github.com/dreamhead/moco
Concise web services for stubs and mocks.
- tags: java, testing, mocking
- source code
https://github.com/jayway/powermock
Mocks static methods, constructors, final classes and methods, private methods, and removal of static initializers.
- tags: java, testing, mocking
- source code
Stubs and mocks web services.
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 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...
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
- 📆 published on: 2007-01-02
- tags: mocking, testing, extreme-programming, tdd, stub
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 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
- 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
- source code