Skip to content

open-rpc/test-coverage

 
 

Repository files navigation

OpenRPC Test Coverage

CircleCI branch Dependabot status npm GitHub release GitHub commits since latest release

This tool is meant to help you test your OpenRPC Document against an API.

Need help or have a question? Join us on Discord!

The Problem

Even after writing your OpenRPC Document, you want to test that the OpenRPC Document does represent an actual API.

Solution

  • generate fake data for the OpenRPC Documents method parameters schemas
  • use example pairings when available
  • use the servers[] defined in the OpenRPC Document to make the JSON-RPC API call
  • report back the coverage results
  • show errors and the result to help fix inconsistencies

Installation:


npm install -g @open-rpc/test-coverage

Usage:

open-rpc-test-coverage -s https://raw.githubusercontent.com/open-rpc/examples/master/service-descriptions/simple-math-openrpc.json --transport=http --reporter=console --skipMethods=addition

Screenshot

console reporter

image

About

Test your OpenRPC Document against an API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •