koopjs / koop-provider-marklogic

A Koop Provider that can be used to exposed data in MarkLogic via Esri feature services
https://koopjs.github.io/koop-provider-marklogic/
Other
6 stars 11 forks source link

Add automated tests #16

Closed jkerr5 closed 6 years ago

jkerr5 commented 6 years ago

We need to add tests for all the capabilities supported by the service.

There are multiple layers that we could add tests: 1) The adapter getData() function 2) The adapter http interface 3) The koop http interface

We have a suite of requests for the adapter http interface or getData() function that we have been using to validate functionality but I left them out of the repo until we decide what tools we want to use for execution of the tests.

The priority would be to add integration tests for that would run through the koop http interface. Consider using Mocha as the testing framework.

jkerr5 commented 6 years ago

First step is to get REST Assured added to the build. We have a set of JSON requests that can be used to test the adapter HTTP interface so we should start with one or two of those tests.

jkerr5 commented 6 years ago

Feature service API: https://resources.arcgis.com/en/help/rest/apiref/featureserver.html Query API: https://resources.arcgis.com/en/help/rest/apiref/fsquery.html

jkerr5 commented 6 years ago

Tests have been added. Any new tests will be created under a separate issue. Also, tests for classificationDef requests will also be added later.