Cloud Posture automates the identification and remediation of risks across cloud infrastructures
read Kibana Contributing Guide for more details
for general guidelines, read Kibana Testing Guide for more details
- Unit Tests (Jest) - located in sibling files to the source code
- Integration Tests
- End-to-End Tests
Run TypeScript:
node scripts/type_check.js --project=x-pack/plugins/cloud_security_posture/tsconfig.json
Run ESLint:
yarn lint:es x-pack/plugins/cloud_security_posture
Run Unit Tests:
yarn test:jest --config x-pack/plugins/cloud_security_posture/jest.config.js
Note for a coverage report, add the
--coverage
flag, and runopen target/kibana-coverage/jest/x-pack/plugins/cloud_security_posture/index.html
Run Integration Tests:
yarn test:ftr --config x-pack/test/api_integration/config.ts
Run End-to-End Tests:
yarn test:ftr --config x-pack/test/cloud_security_posture_functional/config.ts --debug
test runner (FTR) can be used separately with ftr:runner
and ftr:server
:
yarn test:ftr:server --config x-pack/test/api_integration/config.ts
yarn test:ftr:runner --include-tag=cloud_security_posture --config x-pack/test/api_integration/config.ts