Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Dec 20, 2024
1 parent 6089908 commit db56dee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cypress12_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ env:
COMMENT_SUCCESS_MSG: ':white_check_mark: Cypress test run succeeded!'
COMMENT_FAILURE_MSG: ':x: Cypress test run failed!'
LATEST_VERSION: '3.0.0'
COVERAGE: true

jobs:
cypress-tests:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -95,14 +95,15 @@ jobs:
npm i osd-launcher -g
osd-launcher -os 3.0.0 --no-security --no-build --no-plugins -p dummy --destination ~/
/bin/bash -c ~/OpenSearch-v3.0.0/bin/opensearch &
/bin/bash -c 'node scripts/opensearch_dashboards --dev --no-base-path --no-watch --opensearch.ignoreVersionMismatch=true --opensearch.ssl.verificationMode=none --savedObjects.maxImportPayloadBytes=10485760 --server.maxPayloadBytes=1759977 --logging.json=false --data.search.aggs.shardDelay.enabled=true --csp.warnLegacyBrowsers=false --uiSettings.overrides["query:enhancements:enabled"]=true --data_source.enabled=true --workspace.enabled=true' &
/bin/bash -c 'node scripts/opensearch_dashboards --dev --no-base-path --no-watch --opensearch.ignoreVersionMismatch=true --opensearch.ssl.verificationMode=none --savedObjects.maxImportPayloadBytes=10485760 --server.maxPayloadBytes=1759977 --logging.json=false --data.search.aggs.shardDelay.enabled=true --csp.warnLegacyBrowsers=false --uiSettings.overrides["query:enhancements:enabled"]=true --data_source.enabled=true --workspace.enabled=false' &
- name: Wait for 60 seconds
run: sleep 60s
shell: bash

- name: Run tests
run: yarn test:cypress:coverage
run: yarn test:cypress
continue-on-error: true

- name: Upload coverage
id: upload-code-coverage
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"test:ftr:runner": "scripts/use_node scripts/functional_test_runner",
"test:cypress": "env TZ=America/Los_Angeles NO_COLOR=1 yarn cypress run",
"test:cypress:open": "env TZ=America/Los_Angeles NO_COLOR=1 yarn cypress open",
"test:cypress:coverage": "env TZ=America/Los_Angeles NO_COLOR=1 COVERAGE=1 yarn cypress run",
"checkLicenses": "scripts/use_node scripts/check_licenses --dev",
"notice:validate": "scripts/use_node scripts/notice --validate",
"notice:generate": "scripts/use_node scripts/notice",
Expand Down
1 change: 0 additions & 1 deletion packages/osd-babel-preset/common_preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const plugins = [
if (process.env.COVERAGE) {
plugins.unshift([
'istanbul',

{
exclude: ['**/public/framework/redux/store/**', '**/bootstrap/osd_bundles_loader_source.js'],
},
Expand Down

0 comments on commit db56dee

Please sign in to comment.