Typescript-TDD / Ts Auto Mock
Licence: mit
Typescript transformer to unlock automatic mock creation for interfaces and classes
Stars: β 204
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to Ts Auto Mock
Mockaco
π΅ HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting
Stars: β 213 (+4.41%)
Mutual labels: mock, fake, mocking
Fake Xrm Easy
The testing framework for Dynamics CRM and Dynamics 365 which runs on an In-Memory context and deals with mocks or fakes for you
Stars: β 216 (+5.88%)
Mutual labels: fake, mock, mocking
better-mock
Forked from Mockjs, Generate random data & Intercept ajax request. Support miniprogram.
Stars: β 140 (-31.37%)
Mutual labels: mock, fake, mocking
Http Fake Backend
Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: β 253 (+24.02%)
Mutual labels: fake, mock, mocking
Generator Http Fake Backend
Yeoman generator for building a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: β 49 (-75.98%)
Mutual labels: fake, mock, mocking
Cuckoo
Boilerplate-free mocking framework for Swift!
Stars: β 1,344 (+558.82%)
Mutual labels: mock, mocking
Impersonator
Ruby library to record and replay object interactions
Stars: β 100 (-50.98%)
Mutual labels: fake, mock
Prig
Prig is a lightweight framework for test indirections in .NET Framework.
Stars: β 106 (-48.04%)
Mutual labels: mock, mocking
Gock
HTTP traffic mocking and testing made easy in Go ΰΌΌΚΜΩΝΚΜΰΌ½
Stars: β 1,185 (+480.88%)
Mutual labels: mock, mocking
Mockery
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).
Stars: β 10,048 (+4825.49%)
Mutual labels: mock, mocking
Nsubstitute
A friendly substitute for .NET mocking libraries.
Stars: β 1,646 (+706.86%)
Mutual labels: mock, mocking
Fakerator
Random fake data generator with localization for Javascript in Node.js and browser
Stars: β 91 (-55.39%)
Mutual labels: fake, mock
Unit Threaded
Advanced unit test framework for D
Stars: β 100 (-50.98%)
Mutual labels: mock, mocking
Openapi Sampler
π Tool for generation samples based on OpenAPI(fka Swagger) payload/response schema
Stars: β 83 (-59.31%)
Mutual labels: fake, mock
Really Need
Node require wrapper with options for cache busting, pre- and post-processing
Stars: β 108 (-47.06%)
Mutual labels: mock, mocking
Duckrails
Development tool to mock API endpoints quickly and easily (docker image available)
Stars: β 1,690 (+728.43%)
Mutual labels: mock, mocking
Httpretty
Intercept HTTP requests at the Python socket level. Fakes the whole socket module
Stars: β 1,930 (+846.08%)
Mutual labels: mock, mocking
TS auto mock
Need help? Join us on Slack
A TypeScript transformer that will allow you to create mocks for any types (interfaces, classes, etc.) without the need to create manual fakes/mocks.
API Documentation
Installation
Usage
Quick overview
import { createMock } from 'ts-auto-mock';
interface Person {
id: string;
getName(): string;
details: {
phone: number
}
}
const mock = createMock<Person>();
mock.id // ""
mock.getName() // ""
mock.details // "{ phone: 0 }"
- If you are interested to use it with jasmine please go to jasmine-ts-auto-mock
- If you are interested to use it with jest please go to jest-ts-auto-mock
Changelog
Find the changelog here: Changelog.
Roadmap
You can find the roadmap of this project on the Wiki page: Roadmap.
Do you want to contribute?
Authors
Contributors β¨
Thanks goes to these wonderful people (emoji key):
Artem Kornev π π» |
Fabian π π» |
π€ π§ | π¬ π€ π π§ π |
Marc π π» |
π€ | π¬ π€ π π§ π π§ |
This project follows the all-contributors specification. Contributions of any kind welcome!
License
This project is licensed under the MIT License.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].