All Projects → alibaba → Testable Mock

alibaba / Testable Mock

Licence: mit
换种思路写Mock,让单元测试更简单

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Testable Mock

Unit Threaded
Advanced unit test framework for D
Stars: ✭ 100 (-89.76%)
Mutual labels:  mock, unittest
local-data-api
Data API for local, you can write unittest for AWS Aurora Serverless's Data API
Stars: ✭ 99 (-89.87%)
Mutual labels:  mock, unittest
Pytruth
Assertion framework for Python unit tests
Stars: ✭ 118 (-87.92%)
Mutual labels:  mock, unittest
Swiftymocky
Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
Stars: ✭ 748 (-23.44%)
Mutual labels:  mock, unittest
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 (-77.89%)
Mutual labels:  mock, unittest
emock
🐞 下一代C/C++跨平台mock库 (Next generation cross-platform mock library for C/C++)
Stars: ✭ 73 (-92.53%)
Mutual labels:  mock, unittest
Vue Admin Webapp
this is a admin project
Stars: ✭ 673 (-31.12%)
Mutual labels:  mock
Pytest Responsemock
Simplified requests calls mocking for pytest
Stars: ✭ 24 (-97.54%)
Mutual labels:  mock
Lyrebird
移动应用插件化测试工作台
Stars: ✭ 663 (-32.14%)
Mutual labels:  mock
Retrofitcache
RetrofitCache让retrofit2+okhttp3+rxjava配置缓存如此简单。通过注解配置,可以针对每一个接口灵活配置缓存策略;同时让每一个接口方便支持数据模拟,可以代码减小侵入性,模拟数据可以从内存,Assets,url轻松获取。
Stars: ✭ 647 (-33.78%)
Mutual labels:  mock
Shortify Punit
🔨 PHP Mocking Framework, includes method chaining stubbing.
Stars: ✭ 30 (-96.93%)
Mutual labels:  mock
Nunit cshaprp cheatsheet
Example implementations of each attribute available in Nunit2 unit Testing Framework using C# .NET.
Stars: ✭ 14 (-98.57%)
Mutual labels:  unittest
Laraforum
[Spring + JPA ] [ React + Typescript + Redux + Hooks ] [ Docker ] based blog
Stars: ✭ 16 (-98.36%)
Mutual labels:  unittest
Green
Green is a clean, colorful, fast python test runner.
Stars: ✭ 691 (-29.27%)
Mutual labels:  unittest
Offit
Simple but powerful API mocking library. Make mocks great again.
Stars: ✭ 25 (-97.44%)
Mutual labels:  mock
Nose2
The successor to nose, based on unittest2
Stars: ✭ 665 (-31.93%)
Mutual labels:  unittest
Reactspa
combination of react teconology stack
Stars: ✭ 911 (-6.76%)
Mutual labels:  mock
Android Testing Guide
[Examples] Complete reference for Android Testing with examples.
Stars: ✭ 652 (-33.27%)
Mutual labels:  mock
Dyson
Node server for dynamic, fake JSON.
Stars: ✭ 814 (-16.68%)
Mutual labels:  mock
Capture Stream
Capture stream output.
Stars: ✭ 10 (-98.98%)
Mutual labels:  unittest

TestableMock

换种思路写Mock,让单元测试更简单。

无需初始化,不挑服务框架,甭管要换的是私有方法、静态方法、构造方法还是其他任何类的任何方法,也甭管要换的对象是怎么创建的。写好Mock定义,加个@MockMethod注解,一切统统搞定。

阅读这里了解更多故事。

0.5版本已发布,从0.4.x升级到0.5.x版本请参考0.5版本升级指南

如果有遇到其他任何使用问题和建议,请直接在Issue中提出,也可通过Pull Request提交您的代码,我们将在24小时内回复并处理


版本计划

TestableMock正在持续迭代演进,以下版本计划可能在开发过程中发生调整

  • 0.5 当前版本,进行中的工作内容参考Issue清单
  • 0.6 实现第四项单元测试增强能力"快速入参构造器"
  • 1.0 功能稳定,一个崭新的开始

目录结构

|-- testable-parent       ➜ 提供各子模块的公共父pom文件
|-- testable-all          ➜ 依赖聚合,便于一次性引用所有子模块功能
|-- testable-processor    ➜ 编译期代码预处理模块,提供测试辅助功能
|-- testable-agent        ➜ JavaAgent模块,提供Mock测试相关功能
|-- testable-core         ➜ 基础功能模块,提供Mock相关注解和工具类
|-- testable-maven-plugin ➜ Maven插件模块,用于简化JavaAgent注入
|-- demo
|   |-- java-demo         ➜ Java语言的示例代码
|   `-- kotlin-demo       ➜ Kotlin语言的示例代码
`-- docs                  ➜ 项目使用文档

构建项目

主项目使用JDK 1.6+和Maven 3+版本构建,其中demo子项目需要JDK 1.8+版本。

mvn clean install

本地生成文档

docsify serve docs

TestableMock文档使用docsify工具生成,构建前请安装nodejs运行时,并使用npm install -g docsify命令安装文档生成工具。

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].