Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 1.1 KB

testing.adoc

File metadata and controls

56 lines (43 loc) · 1.1 KB

Testing Planner

Overview

The following sections describe the tests used in Planner.

Unit Tests

To run the linter, build validator, and unit tests, use:

$ gulp test:unit

Functional Tests

Building for Functional Tests or Standalone Production

  1. Build the Planner library. In the planner root directory run:

    npm run build
  2. Link the Planner library to runtime. Change directory to runtime and run:

    npm link ../dist
  3. Build the runtime using:

    npm run build

    The runtime is now available in the runtime/dist directory.

Local tests

To run tests like those done in the CI run the following script in the Planner directory:

$ ./scripts/local_docker.sh

This script generates a docker image that you could use to run the planner within a container.

Optionally, you could also run the functional tests by passing functionalTests as an argument to the above script:

$ ./scripts/local_docker.sh functionalTests