Skip to content

phodal/mest

Repository files navigation

Mest

A Contract Test Framework for TypeScript

Build Status Coverage Status node npm

Mest Screenshot

Usage

  1. install mest
npm install -g mest
  1. run API compare
mest -i data/url.csv

data example:

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: <green>message</green>,<green>documentation_url</green>
local diff key: <red>id</red>,<red>key<red>, remote diff:
difference <red>message<red> type -> api: <red>string</red>, interface -> <red>number</red>
-> API https://phodal.github.io/mest-test/user.json .

License: MIT

Phodal's Idea

© 2018 A Phodal Huang's Idea. This code is distributed under the MIT license. See LICENSE in this directory.