* Enables interpreter screenshot tests which were disabled in #42842 * Refactors tests to use expression service * Fixes edge cases in expression service render: ** fixes swallowing of promise rejections from renderer.render() ** fixes swallowing of errors which emitted sync in render() * Adds default value to colorRange type, as otherwise it fails in runtime if not passed |
||
---|---|---|
.. | ||
plugins/kbn_tp_run_pipeline | ||
screenshots/baseline | ||
snapshots | ||
test_suites/run_pipeline | ||
config.js | ||
README.md |
Interpreter Functional Tests
This folder contains interpreter functional tests.
Add new test suites into the test_suites
folder and reference them from the
config.js
file. These test suites work the same as regular functional test.
Run the test
To run these tests during development you can use the following commands:
# Start the test server (can continue running)
node scripts/functional_tests_server.js --config test/interpreter_functional/config.js
# Start a test run
node scripts/functional_test_runner.js --config test/interpreter_functional/config.js
Writing tests
Look into test_suites/run_pipeline/basic.js for examples
to update baseline screenshots and snapshots run with:
node scripts/functional_test_runner.js --config test/interpreter_functional/config.js --updateBaselines