Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phodal/mest
契约测试框架。A TypeScript Contract Test for Interface base project.
https://github.com/phodal/mest
contract-testing contracts-programming e2e-testing e2e-tests test testing testing-tools
Last synced: about 2 months ago
JSON representation
契约测试框架。A TypeScript Contract Test for Interface base project.
- Host: GitHub
- URL: https://github.com/phodal/mest
- Owner: phodal
- License: mit
- Created: 2018-03-28T13:48:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-10T14:32:00.000Z (over 6 years ago)
- Last Synced: 2024-10-11T16:11:18.878Z (3 months ago)
- Topics: contract-testing, contracts-programming, e2e-testing, e2e-tests, test, testing, testing-tools
- Language: TypeScript
- Homepage: https://phodal.github.io/mest/
- Size: 536 KB
- Stars: 28
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
Awesome Lists containing this project
README
# Mest
> A Contract Test Framework for TypeScript
[![Build Status](https://travis-ci.org/phodal/mest.svg?branch=master)](https://travis-ci.org/phodal/mest)
[![Coverage Status](https://coveralls.io/repos/github/phodal/mest/badge.svg?branch=master)](https://coveralls.io/github/phodal/mest?branch=master)
[![node](https://img.shields.io/node/v/mest.svg)](https://www.npmjs.com/package/mest)
[![npm](https://img.shields.io/npm/v/mest.svg)](https://www.npmjs.com/mest)![Mest Screenshot](./doc/mest-screenshot.png)
Usage
---1. install mest
```
npm install -g mest
```2. run API compare
```
mest -i data/url.csv
```data example:
```csv
url,interface
https://phodal.github.io/mest-test/error.json,mock/IError.ts
https://phodal.github.io/mest-test/moreerror.json,mock/IMoreIError.ts
https://phodal.github.io/mest-test/user.json,mock/IUser.ts```
results:
```
-> API https://phodal.github.io/mest-test/moreerror.json .
-> API https://phodal.github.io/mest-test/error.json .
same key: message,documentation_url
local diff key: id,key, remote diff:
difference message type -> api: string, interface -> number
-> API https://phodal.github.io/mest-test/user.json .
```License: MIT
---[![Phodal's Idea](http://brand.phodal.com/shields/idea-small.svg)](http://ideas.phodal.com/)
© 2018 A [Phodal Huang](https://www.phodal.com)'s [Idea](http://github.com/phodal/ideas). This code is distributed under the MIT license. See `LICENSE` in this directory.