Update README to have additional test instructions. (#41283) (#41411)

This commit is contained in:
Justin Kambic 2019-07-18 09:42:47 -04:00 committed by GitHub
parent a0840d723f
commit cec670aa05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,10 +49,14 @@ In one shell, from **~/kibana/x-pack**:
In another shell, from **~kibana/x-pack**:
`node ../scripts/functional_test_runner.js --grep="{TEST_NAME}"`.
### API tests
#### API tests
In one shell, from **~/kibana/x-pack**:
`node scripts/functional_tests-server.js`
In another shell, from **~kibana/x-pack**:
If instead you need to run API tests, start up the test server and then in another shell, from **~kibana/x-pack**:
`node ../scripts/functional_test_runner.js --config test/api_integration/config.js --grep="{TEST_NAME}"`.
You can access the functional test server's Kibana at `http://localhost:5620/`.
You can login with username `elastic` and password `changeme` by default.
If you want to freeze a UI or API test you can include an async call like `await new Promise(r => setTimeout(r, 1000 * 60))`
to freeze the execution for 60 seconds if you need to click around or check things in the state that is loaded.