Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.