diff --git a/.circleci/config.yml b/.circleci/config.yml index d40df96106..951ac3001d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -857,6 +857,8 @@ jobs: - run: name: Running TS unit tests command: npm run test:unit + - store_test_results: + path: test/reports test-go: executor: docker-amd64 @@ -986,6 +988,9 @@ jobs: TEST_SNYK_FIPS: << parameters.fips >> TEST_SNYK_COMMAND: << parameters.test_snyk_command >> TEST_SNYK_DONT_SKIP_ANYTHING: << parameters.dont_skip_tests >> + JEST_JUNIT_OUTPUT_DIR: reports + - store_test_results: + path: reports regression-tests: parameters: diff --git a/package-lock.json b/package-lock.json index ec3e813adb..d59ddbd428 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,6 +37,7 @@ "glob": "^7.1.7", "global-agent": "^2.1.12", "jest-json-schema": "^6.1.0", + "jest-junit": "^16.0.0", "json-stream-stringify": "^3.1.1", "lodash.assign": "^4.2.0", "lodash.camelcase": "^4.3.0", @@ -13909,6 +13910,31 @@ "node": ">=8" } }, + "node_modules/jest-junit": { + "version": "16.0.0", + "resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-16.0.0.tgz", + "integrity": "sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ==", + "dependencies": { + "mkdirp": "^1.0.4", + "strip-ansi": "^6.0.1", + "uuid": "^8.3.2", + "xml": "^1.0.1" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/jest-junit/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/jest-leak-detector": { "version": "28.1.3", "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-28.1.3.tgz", @@ -24523,6 +24549,20 @@ "node": ">=8" } }, +<<<<<<< HEAD +======= + "node_modules/xml": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz", + "integrity": "sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==" + }, + "node_modules/xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, +>>>>>>> f1f744935 (chore(ci): persist test findings) "node_modules/xml2js": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz", @@ -35209,6 +35249,24 @@ } } }, + "jest-junit": { + "version": "16.0.0", + "resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-16.0.0.tgz", + "integrity": "sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ==", + "requires": { + "mkdirp": "^1.0.4", + "strip-ansi": "^6.0.1", + "uuid": "^8.3.2", + "xml": "^1.0.1" + }, + "dependencies": { + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" + } + } + }, "jest-leak-detector": { "version": "28.1.3", "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-28.1.3.tgz", @@ -43302,6 +43360,20 @@ "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==" }, +<<<<<<< HEAD +======= + "xml": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz", + "integrity": "sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==" + }, + "xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, +>>>>>>> f1f744935 (chore(ci): persist test findings) "xml2js": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz", diff --git a/package.json b/package.json index 55601ec618..538c0ee0b7 100644 --- a/package.json +++ b/package.json @@ -40,8 +40,8 @@ "build-cli:prod": "node --max-old-space-size=8192 node_modules/webpack/bin/webpack.js --config webpack.prod.ts", "watch": "npm run build-cli:dev -- --watch", "test": "npm run test:unit && npm run test:acceptance && npm run test:tap", - "test:unit": "jest --runInBand --testPathPattern '/test(/jest)?/unit/'", - "test:acceptance": "jest --runInBand --testPathPattern \"/test(/jest)?/acceptance/\"", + "test:unit": "jest --runInBand --testPathPattern '/test(/jest)?/unit/' --reporters=jest-junit", + "test:acceptance": "jest --runInBand --testPathPattern '/test(/jest)?/acceptance/' --reporters=jest-junit", "test:tap": "tap -Rspec --timeout=300 test/tap/*.test.* ", "test:smoke": "./scripts/run-smoke-tests-locally.sh", "dev": "ts-node ./src/cli/index.ts" @@ -85,6 +85,7 @@ "glob": "^7.1.7", "global-agent": "^2.1.12", "jest-json-schema": "^6.1.0", + "jest-junit": "^16.0.0", "json-stream-stringify": "^3.1.1", "lodash.assign": "^4.2.0", "lodash.camelcase": "^4.3.0",