|
6 | 6 | ## Requirements |
7 | 7 |
|
8 | 8 | To use machine learning features, you must have a Platinum or Enterprise license |
9 | | -or a free 14-day trial. File Data Visualizer requires a Basic license. For more |
| 9 | +or a free 14-day Trial. File Data Visualizer requires a Basic license. For more |
10 | 10 | info, refer to |
11 | 11 | [Set up machine learning features](https://www.elastic.co/guide/en/machine-learning/master/setup.html). |
12 | 12 |
|
@@ -99,23 +99,37 @@ node scripts/jest plugins/ml --verbose |
99 | 99 | Before running the test server, make sure to quit all other instances of |
100 | 100 | Elasticsearch. |
101 | 101 |
|
102 | | -1. From one terminal, in the x-pack directory, run: |
| 102 | +Run the following commands from the `x-pack` directory and use separate terminals |
| 103 | +for test server and test runner. The test server command starts an Elasticsearch |
| 104 | +and Kibana instance that the tests will be run against. |
103 | 105 |
|
104 | | - node scripts/functional_tests_server.js --config test/functional/config.js |
| 106 | +1. Functional UI tests with `Trial` license (default config): |
105 | 107 |
|
106 | | - This command starts an Elasticsearch and Kibana instance that the tests will be run against. |
| 108 | + node scripts/functional_tests_server.js |
| 109 | + node scripts/functional_test_runner.js --include-tag mlqa |
| 110 | + |
| 111 | + ML functional `Trial` license tests are located in `x-pack/test/functional/apps/ml`. |
| 112 | + |
| 113 | +1. Functional UI tests with `Basic` license: |
107 | 114 |
|
108 | | -1. In another tab, run the following command to perform API integration tests (from the x-pack directory): |
| 115 | + node scripts/functional_tests_server.js --config test/functional_basic/config.ts |
| 116 | + node scripts/functional_test_runner.js --config test/functional_basic/config.ts --include-tag mlqa |
109 | 117 |
|
110 | | - node scripts/functional_test_runner.js --include-tag mlqa --config test/api_integration/config |
| 118 | + ML functional `Basic` license tests are located in `x-pack/test/functional_basic/apps/ml`. |
| 119 | + |
| 120 | +1. API integration tests with `Trial` license: |
| 121 | + |
| 122 | + node scripts/functional_tests_server.js |
| 123 | + node scripts/functional_test_runner.js --config test/api_integration/config.ts --include-tag mlqa |
111 | 124 | |
112 | | - ML API integration tests are located in `x-pack/test/api_integration/apis/ml`. |
| 125 | + ML API integration `Trial` license tests are located in `x-pack/test/api_integration/apis/ml`. |
113 | 126 |
|
114 | | -1. In another tab, run the following command to perform UI functional tests (from the x-pack directory): |
| 127 | +1. API integration tests with `Basic` license: |
115 | 128 |
|
116 | | - node scripts/functional_test_runner.js --include-tag mlqa |
| 129 | + node scripts/functional_tests_server.js --config test/api_integration_basic/config.ts |
| 130 | + node scripts/functional_test_runner.js --config test/api_integration_basic/config.ts --include-tag mlqa |
117 | 131 | |
118 | | - ML functional tests are located in `x-pack/test/functional/apps/ml`. |
| 132 | + ML API integration `Basic` license tests are located in `x-pack/test/api_integration_basic/apis/ml`. |
119 | 133 |
|
120 | 134 | ## Shared functions |
121 | 135 |
|
|
0 commit comments