You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@open-rpc/test-coverage

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-rpc/test-coverage

Test your OpenRPC Document against an API.

1.0.8
npmnpm
Version published
Weekly downloads
25K
-6.92%
Maintainers
2
Weekly downloads
 
Created
Source

OpenRPC Test Coverage

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

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

FAQs

Package last updated on 01 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts