0.1.0-alpha.3 • Published 6 years ago

raml-api-tester v0.1.0-alpha.3

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

RAML API Tester

The RAML API Tester (RAT) is a simple library and cli that can be used to test an enpoint serving the api implemenation of a RAML spec.

Status

Build Status npm version dependencies

Known Limitations & Bugs

  • RAT is in an alpha release state, it's working for my use case but still needs a lot of work.
  • The "methodName" option is not yet available via the cli
  • See or add to the complete list of issues

Usage

Javascript Library

  • more to come on this

CLI

Installaiton

npm install -g raml-api-tester

Help

Output of rat -h:

NAME:              rat
SYNOPSIS:          rat [--baseURI https://example.com] [--raml /user/ubuntu/files/api.raml]
DESCRIPTION:       Automatically test api's that implement a RAML spec
OPTIONS:
                   -h
                       display this screen
                   --baseURI
                       provide the base uri for conducting the tests
                   --methodName
                       select a specific method to test by name
                   --raml
                       the absolute file path of the raml file being tested. (required)"
                   --optionsFile
                       the absolute file path to a json file containing options for rat

Examples

  • example1
    • run.sh example requires the jq cli to be installed and in your $PATH
    • This test runs against the OMDB api and requires you to obtain a free api key to run the example
    • macos & linux:
      cd examples/example1/
      ./run.sh
    • windows:
      coming sooner if you submit a pr

Contributing

Dev environment setup

Prerequisites

  • Nodejs (lts or newer)

Coding standards

  • more to come on this