diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f74f1778d4a..2c2057982d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -97,7 +97,7 @@ jobs: strategy: fail-fast: false matrix: - cmd: ['ci-webdriver-standard', 'ci-e2e-integration', 'ci-webdriver-default-mobile'] + cmd: ['ci-webdriver-standard', 'ci-integration-all', 'ci-integration-sentinel', 'ci-webdriver-default-mobile'] chrome-version: ['90', 'latest'] suite: [all] include: @@ -112,7 +112,9 @@ jobs: - cmd: ci-webdriver-default suite: workflows exclude: # temporary until all suites run on Chrome 90 - - cmd: ci-e2e-integration + - cmd: ci-integration-all + chrome-version: 90 + - cmd: ci-integration-sentinel chrome-version: 90 - cmd: ci-webdriver-default-mobile chrome-version: 90 diff --git a/package.json b/package.json index a012fc0b3f7..3287f40d250 100755 --- a/package.json +++ b/package.json @@ -46,7 +46,8 @@ "-- CI SCRIPTS ": "-----------------------------------------------------------------------------------------------", "build": "./scripts/build/build-ci.sh", "ci-compile": "node scripts/ci/check-versions.js && node scripts/build/cli npmCiModules && npm run lint && npm run build && npm run integration-api && npm run unit", - "ci-e2e-integration": "mocha --config tests/integration/.mocharc.js", + "ci-integration-all": "mocha --config tests/integration/.mocharc-all.js", + "ci-integration-sentinel": "mocha --config tests/integration/.mocharc-sentinel.js", "ci-webdriver-default": "wdio run ./tests/e2e/default/wdio.conf.js", "ci-webdriver-default-mobile": "wdio run ./tests/e2e/default-mobile/wdio.conf.js", "ci-webdriver-standard": "wdio run ./tests/e2e/standard/wdio.conf.js", diff --git a/tests/integration/.mocharc-all.js b/tests/integration/.mocharc-all.js new file mode 100644 index 00000000000..bbdea92cd1c --- /dev/null +++ b/tests/integration/.mocharc-all.js @@ -0,0 +1,9 @@ +const baseConfig = require('./.mocharc-base'); + +module.exports = { + ...baseConfig, + spec: [ + 'tests/integration/!(cht-conf|sentinel)/**/*.spec.js', // run everything except the sentinel tests - those are tested in .mocharc-sentinel.js + 'tests/integration/cht-conf/**/*.spec.js', // Executing last to not side-effect sentinel tests. + ], +}; diff --git a/tests/integration/.mocharc.js b/tests/integration/.mocharc-base.js similarity index 78% rename from tests/integration/.mocharc.js rename to tests/integration/.mocharc-base.js index c5a5f243aaf..6d433564202 100644 --- a/tests/integration/.mocharc.js +++ b/tests/integration/.mocharc-base.js @@ -13,8 +13,7 @@ module.exports = { fullTrace: true, asyncOnly: false, spec: [ - 'tests/integration/!(cht-conf)/**/*.spec.js', - 'tests/integration/cht-conf/**/*.spec.js', // Executing last to not side-effect sentinel tests. + // extend this file and overwrite this property with the specs you want to run ], timeout: 200 * 1000, //API takes a little long to start up reporter: 'spec', diff --git a/tests/integration/.mocharc-sentinel.js b/tests/integration/.mocharc-sentinel.js new file mode 100644 index 00000000000..fd165b1e562 --- /dev/null +++ b/tests/integration/.mocharc-sentinel.js @@ -0,0 +1,6 @@ +const baseConfig = require('./.mocharc-base'); + +module.exports = { + ...baseConfig, + spec: [ 'tests/integration/sentinel/**/*.spec.js' ], +}; diff --git a/tests/integration/api/controllers/all-docs.spec.js b/tests/integration/api/controllers/all-docs.spec.js index bc602049448..309d97f8ccd 100644 --- a/tests/integration/api/controllers/all-docs.spec.js +++ b/tests/integration/api/controllers/all-docs.spec.js @@ -299,7 +299,6 @@ describe('all_docs handler', () => { )) ])) .then(([excludeDocs, includeDocs]) => { - console.log(JSON.stringify(excludeDocs, null, 2)); expect(excludeDocs.rows.map(row => row.id)).to.have.members(getIdsForUser('offline')); expect(includeDocs.rows.map(row => row.id)).to.have.members(getIdsForUser('offline')); }); diff --git a/tests/integration/api/controllers/db-doc.spec.js b/tests/integration/api/controllers/db-doc.spec.js index 8d68d3971b8..ee46b1a75c3 100644 --- a/tests/integration/api/controllers/db-doc.spec.js +++ b/tests/integration/api/controllers/db-doc.spec.js @@ -786,7 +786,6 @@ describe('db-doc handler', () => { if (reportScenarios[idx].allowed) { chai.expect(result).to.deep.include(reportScenarios[idx].doc); } else { - console.log(idx, result); chai.expect(result).to.deep.nested.include({ statusCode: 403, 'responseBody.error': 'forbidden'}); } }); diff --git a/tests/integration/infodocs/infodocs.spec.js b/tests/integration/infodocs/infodocs.spec.js index cf290db83a3..f86cfb85db4 100644 --- a/tests/integration/infodocs/infodocs.spec.js +++ b/tests/integration/infodocs/infodocs.spec.js @@ -305,7 +305,6 @@ describe('infodocs', () => { assert.equal(infodoc.some, 'legacy data'); }); }).catch(err => { - console.log('OH NOOOOO', err); console.log(err); throw err; });