,,==.
// `
|| ,--~~~~-._ _(\--,_
\\._,-~ \ ' * `o
`---~\( _/,___( /_/`---~~
``==- `==-,
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.
- 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
- more to come on this
npm install -g raml-api-tester
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
- example1
run.sh
example requires thejq
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
- Nodejs (lts or newer)
- more to come on this