diff options
author | Malena Ebert <63863184+malena-ebert-sonarsource@users.noreply.github.com> | 2021-01-20 14:10:36 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-03-27 20:04:06 +0000 |
commit | 51d02b308638c31d6cd4c46125ce9155fc033ecf (patch) | |
tree | cbbe7ae91db91921bfa5a77f80cc7738ddc58693 /server/sonar-docs | |
parent | 49612014375251ad6c77c9c0c8ec2e296532a16f (diff) | |
download | sonarqube-51d02b308638c31d6cd4c46125ce9155fc033ecf.tar.gz sonarqube-51d02b308638c31d6cd4c46125ce9155fc033ecf.zip |
BUILD-857 Add junit report format for jest tests.
Diffstat (limited to 'server/sonar-docs')
-rw-r--r-- | server/sonar-docs/package.json | 11 | ||||
-rw-r--r-- | server/sonar-docs/yarn.lock | 22 |
2 files changed, 31 insertions, 2 deletions
diff --git a/server/sonar-docs/package.json b/server/sonar-docs/package.json index dffe2c5adb4..3ffba49e22e 100644 --- a/server/sonar-docs/package.json +++ b/server/sonar-docs/package.json @@ -56,6 +56,7 @@ "graphql-code-generator": "0.5.2", "jest": "25.1.0", "jest-fetch-mock": "2.1.2", + "jest-junit": "12.0.0", "prettier": "1.19.1", "react-test-renderer": "16.8.5", "remark": "11.0.2", @@ -74,7 +75,7 @@ "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src", "ts-check": "tsc --noEmit", "validate": "yarn lint && yarn ts-check && yarn format-check && yarn test", - "validate-ci": "yarn lint-report && yarn test --coverage", + "validate-ci": "yarn lint-report && yarn test --coverage --ci --reporters=default --reporters=jest-junit", "check-ci": "yarn ts-check && yarn format-check" }, "prettier": { @@ -110,5 +111,13 @@ "\\.js$": "babel-jest", "\\.(ts|tsx)$": "ts-jest" } + }, + "jest-junit": { + "outputDirectory": "build/test-results/test-jest", + "outputName": "junit.xml", + "ancestorSeparator": " > ", + "suiteNameTemplate": "{filename}", + "classNameTemplate": "{classname}", + "titleTemplate": "{title}" } } diff --git a/server/sonar-docs/yarn.lock b/server/sonar-docs/yarn.lock index 09bbc33d46a..016390d87fd 100644 --- a/server/sonar-docs/yarn.lock +++ b/server/sonar-docs/yarn.lock @@ -9105,6 +9105,16 @@ jest-jasmine2@^25.1.0: pretty-format "^25.1.0" throat "^5.0.0" +jest-junit@12.0.0: + version "12.0.0" + resolved "https://repox.jfrog.io/repox/api/npm/npm/jest-junit/-/jest-junit-12.0.0.tgz#3ebd4a6a84b50c4ab18323a8f7d9cceb9d845df6" + integrity sha1-Pr1KaoS1DEqxgyOo99nM652EXfY= + dependencies: + mkdirp "^1.0.4" + strip-ansi "^5.2.0" + uuid "^3.3.3" + xml "^1.0.1" + jest-leak-detector@^25.1.0: version "25.1.0" resolved "https://repox.jfrog.io/repox/api/npm/npm/jest-leak-detector/-/jest-leak-detector-25.1.0.tgz#ed6872d15aa1c72c0732d01bd073dacc7c38b5c6" @@ -10279,6 +10289,11 @@ mkdirp@0.5.1, mkdirp@0.x, mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1: dependencies: minimist "0.0.8" +mkdirp@^1.0.4: + version "1.0.4" + resolved "https://repox.jfrog.io/repox/api/npm/npm/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" + integrity sha1-PrXtYmInVteaXw4qIh3+utdcL34= + modularscale@^1.0.2: version "1.0.2" resolved "https://repox.jfrog.io/repox/api/npm/npm/modularscale/-/modularscale-1.0.2.tgz#4a8f13af32a5e5214fc6e2cfc529064abfd7d877" @@ -15110,7 +15125,7 @@ utils-merge@1.0.1: resolved "https://repox.jfrog.io/repox/api/npm/npm/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= -uuid@3.4.0, uuid@^3.4.0: +uuid@3.4.0, uuid@^3.3.3, uuid@^3.4.0: version "3.4.0" resolved "https://repox.jfrog.io/repox/api/npm/npm/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4= @@ -15634,6 +15649,11 @@ xml-name-validator@^3.0.0: resolved "https://repox.jfrog.io/repox/api/npm/npm/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" integrity sha1-auc+Bt5NjG5H+fsYH3jWSK1FfGo= +xml@^1.0.1: + version "1.0.1" + resolved "https://repox.jfrog.io/repox/api/npm/npm/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" + integrity sha1-eLpyAgApxbyHuKgaPPzXS0ovweU= + xmlchars@^2.1.1: version "2.2.0" resolved "https://repox.jfrog.io/repox/api/npm/npm/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" |