0.1.0 • Published 6 years ago

mest v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Mest

A Contract Test Framework for TypeScript

Build Status Coverage Status node npm

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/error.json .
same key: message,documentation_url
local diff key: id, remote diff:
-> API https://phodal.github.io/mest-test/moreerror.json .
difference errors type -> api: array, interface -> string
-> API https://phodal.github.io/mest-test/user.json .
same key: login,id,avatar_url,url,html_url,followers_url,following_url,gists_url,starred_url,subscriptions_url,organizations_url,repos_url,events_url,received_events_url,type,site_admin,name,company,blog,location,email,hireable,bio,public_repos,public_gists,followers,following,created_at,updated_at
local diff key: avatar_id, remote diff: gravatar_id

License: MIT

Phodal's Idea

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