Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Latest commit

 

History

History
34 lines (21 loc) · 701 Bytes

tests.md

File metadata and controls

34 lines (21 loc) · 701 Bytes

DKT.flows-engine Testing

We're using mocha and chai for testing.
Each Lambda function and each Workflow has to be tested.

Run all tests with

Usage: cli/dkt test all [options]

Test everything

Options:

  -h, --help  output usage information

resources

Each lambda should have a test.js file within its directory (src/lambdas/<functionName>/test.js). Run the tests for a single lambda function with

Usage: cli/dkt test resources [options]

Test Resources

Options:

  -h, --help             output usage information
  -r, --resource <name>  only one resource

e.g. cli/dkt test resources -r fetchArticle