Skip to content

Latest commit

 

History

History
65 lines (52 loc) · 1.26 KB

testing.adoc

File metadata and controls

65 lines (52 loc) · 1.26 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

  • To run all the functional tests, in the runtime directory, run:

    $ npm run test:func
  • To run only the smoke functional tests, in the runtime directory, run:

    npm run test:funcsmoke

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