diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-03-09 00:35:25 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-03-09 00:45:05 +0800 |
commit | 583a17d6279e819ab5e37f330500444881e873d7 (patch) | |
tree | 733823e0a7de5ab78ce51758ad64a31ce3b215f6 | |
parent | caf1a22084e9b633f903c493841129c43b8b598b (diff) | |
download | dexon-0x-contracts-583a17d6279e819ab5e37f330500444881e873d7.tar.gz dexon-0x-contracts-583a17d6279e819ab5e37f330500444881e873d7.tar.zst dexon-0x-contracts-583a17d6279e819ab5e37f330500444881e873d7.zip |
Detail tests in the README
-rw-r--r-- | packages/sra-report/README.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/sra-report/README.md b/packages/sra-report/README.md index 080fa05f2..812535f45 100644 --- a/packages/sra-report/README.md +++ b/packages/sra-report/README.md @@ -2,6 +2,19 @@ This tool allows you to generate reports that detail an endpoint's [standard relayer API HTTP specification](https://github.com/0xProject/standard-relayer-api/blob/master/http/v0.md) compliance. The tool will perform a [Postman collection](https://www.getpostman.com/docs/v6/postman/collections/creating_collections) run and either print a report to the console or save it to disk as a json file. SRA report can also output a Postman collection file and [Postman environment](https://www.getpostman.com/docs/v6/postman/environments_and_globals/manage_environments) file in order to facilitate replication and debugging of collection runs using the [Postman native app](https://www.getpostman.com/docs/v6/postman/launching_postman/installation_and_updates). +The tool currently performs the following checks for each endpoint: + +* `application/json` Content-Type header validation +* JSON schema validation +* Correct filtering when a query paramater is provided (ex. when querying for a specific maker address, all orders returned have the same maker address that was provided by the query) + +Features to come: + +* Correct sorting (ex. the `/orderbook` endpoint should return orders in order of price) +* Tests for pagination +* Tests for the `POST /order` endpoint +* Tests for failure cases and errors + ## Installation `yarn add -g @0xproject/sra-report` |