graphql-contract-test
Contract test GraphQL endpoint using a Schema file
Last updated 2 years ago by symm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install graphql-contract-test 
SYNC missed versions from official npm registry.

GraphQL Contract Test

npm version

Consumer driven contract testing for GraphQL APIs.

Usage

  GraphQL Contract Test v0.0.10


  Check if the remote server fulfills the supplied GraphQL contract file

  Usage: graphql-contract-test ENDPOINT_URL client_schema_file

  Options:
    --header, -h         Add a custom header (ex. 'Authorization=Bearer ...'), can be used multiple times
    --ignore-directives  Exclude directive changes from the comparison

Where client-schema.graphql contains the schema you expect the server to implement.

An introspection query will be made against the API, any breaking changes will be reported

Docker Image

Place your schema.graphqls file in the current working directory then exec:

docker run \
    --rm \
    -t \
    -v $(PWD)/schema.graphqls:/schema.graphqls \
    symm/graphql-contract-test:latest \
    https://your-api-here /schema.graphqls

Current Tags

  • 0.0.11                                ...           latest (2 years ago)

7 Versions

  • 0.0.11                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 2
Dependencies (5)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |