From db56deefec410581ad9431b21bdab9beb80c4564 Mon Sep 17 00:00:00 2001 From: Miki Date: Thu, 19 Dec 2024 19:19:36 -0800 Subject: [PATCH] coverage Signed-off-by: Miki --- .github/workflows/cypress12_tests.yml | 7 ++++--- package.json | 1 - packages/osd-babel-preset/common_preset.js | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cypress12_tests.yml b/.github/workflows/cypress12_tests.yml index 0e60dda176f..c07cde5c993 100644 --- a/.github/workflows/cypress12_tests.yml +++ b/.github/workflows/cypress12_tests.yml @@ -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 @@ -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 diff --git a/package.json b/package.json index fd0b3ddf038..e50776dfef3 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/osd-babel-preset/common_preset.js b/packages/osd-babel-preset/common_preset.js index 0423258ac79..c2ddf5299d3 100644 --- a/packages/osd-babel-preset/common_preset.js +++ b/packages/osd-babel-preset/common_preset.js @@ -51,7 +51,6 @@ const plugins = [ if (process.env.COVERAGE) { plugins.unshift([ 'istanbul', - { exclude: ['**/public/framework/redux/store/**', '**/bootstrap/osd_bundles_loader_source.js'], },