/transformers-integration-test

Integration test for generic transformers.

Primary LanguageJavaScriptMIT LicenseMIT

Transformers Integration Test

Integration test for generic transformers. Performs the following tests:

  • Checks that the number of items in a /transformers/your-type/ matches the /__count
  • Checks that the /__count matches the number of ids in /__ids.
  • Checks that making calls to /__ids /transformers/your-type/{uuid} are valid, and return all expected fields.
  • Optionally creates a concept-publisher job, and checks if it succeeds.

Install

Clone the repo, and run make in the project directory.

Usage

To run the full suite of tests against an environment:

test-transformers -c alphaville-series -e dynpub-uk

To randomly select a number of elements from the ids array, and only test against those (recommended for large result sets):

test-transformers -c alphaville-series -e dynpub-uk -l 50

To also run the concept-publisher test:

test-transformers -c alphaville-series -e dynpub-uk -l 50 -c

See help for an up-to-date usage:

test-transformers --help

Development

Run a make build to download node_modules for local development.