mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[CSPM][Tests] Update integration test command (#216769)
## Summary Updated command to run integration tests, the old one does not work.
This commit is contained in:
parent
56c2d1073b
commit
e27210a95f
1 changed files with 6 additions and 7 deletions
|
@ -62,19 +62,18 @@ yarn test:jest --config x-pack/solutions/security/plugins/cloud_security_posture
|
|||
>
|
||||
> for a coverage report, add the `--coverage` flag, and run `open target/kibana-coverage/jest/x-pack/solutions/security/plugins/cloud_security_posture/index.html`
|
||||
|
||||
Run [**Integration Tests**](https://docs.elastic.dev/kibana-dev-docs/tutorials/testing-plugins#):
|
||||
Run [**API Integration Tests**](https://docs.elastic.dev/kibana-dev-docs/tutorials/testing-plugins#):
|
||||
|
||||
```bash
|
||||
yarn test:ftr --config x-pack/test/api_integration/config.ts
|
||||
yarn test:ftr --config x-pack/test/cloud_security_posture_api/config.ts
|
||||
yarn test:ftr --config x-pack/test/api_integration/apis/cloud_security_posture/config.ts
|
||||
yarn test:ftr --config x-pack/test_serverless/api_integration/test_suites/security/config.ts --include-tag=cloud_security_posture
|
||||
```
|
||||
|
||||
Run [**End-to-End Tests**](https://www.elastic.co/guide/en/kibana/current/development-tests.html#_running_functional_tests):
|
||||
|
||||
```bash
|
||||
yarn test:ftr --config x-pack/test/cloud_security_posture_functional/config.ts
|
||||
yarn test:ftr --config x-pack/test/api_integration/apis/cloud_security_posture/config.ts
|
||||
yarn test:ftr --config x-pack/test/cloud_security_posture_api/config.ts
|
||||
yarn test:ftr --config x-pack/test_serverless/api_integration/test_suites/security/config.ts --include-tag=cloud_security_posture
|
||||
yarn test:ftr --config x-pack/test_serverless/functional/test_suites/security/config.cloud_security_posture.ts
|
||||
```
|
||||
|
||||
|
@ -93,7 +92,7 @@ yarn cypress:cloud_security_posture:run:ess
|
|||
|
||||
Functional test runner (FTR) can be used separately with `ftr:runner` and `ftr:server`. This is convenient while developing tests.
|
||||
|
||||
For example,
|
||||
For example,
|
||||
|
||||
run ESS (stateful) api integration tests:
|
||||
```bash
|
||||
|
@ -165,4 +164,4 @@ module.exports = {
|
|||
],
|
||||
},
|
||||
// ...other configurations...
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue