2019-03-21 07:12:25 +01:00
|
|
|
# Interpreter Functional Tests
|
|
|
|
|
|
|
|
This folder contains interpreter functional tests.
|
|
|
|
|
|
|
|
Add new test suites into the `test_suites` folder and reference them from the
|
2019-11-26 14:22:34 +01:00
|
|
|
`config.ts` file. These test suites work the same as regular functional test.
|
2019-03-21 07:12:25 +01:00
|
|
|
|
|
|
|
## Run the test
|
|
|
|
|
|
|
|
To run these tests during development you can use the following commands:
|
|
|
|
|
|
|
|
```
|
|
|
|
# Start the test server (can continue running)
|
2019-11-26 14:22:34 +01:00
|
|
|
node scripts/functional_tests_server.js --config test/interpreter_functional/config.ts
|
2019-04-04 14:33:38 +02:00
|
|
|
|
2019-03-21 07:12:25 +01:00
|
|
|
# Start a test run
|
2019-11-26 14:22:34 +01:00
|
|
|
node scripts/functional_test_runner.js --config test/interpreter_functional/config.ts
|
2019-03-21 07:12:25 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
# Writing tests
|
|
|
|
|
2019-11-26 14:22:34 +01:00
|
|
|
Look into test_suites/run_pipeline/basic.ts for examples
|
2019-04-04 14:33:38 +02:00
|
|
|
|
|
|
|
to update baseline screenshots and snapshots run with:
|
2020-02-11 19:47:36 +01:00
|
|
|
|
2019-04-04 14:33:38 +02:00
|
|
|
```
|
2019-11-26 14:22:34 +01:00
|
|
|
node scripts/functional_test_runner.js --config test/interpreter_functional/config.ts --updateBaselines
|
2020-02-11 19:47:36 +01:00
|
|
|
```
|