aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/jest.config.js
diff options
context:
space:
mode:
authorMalena Ebert <63863184+malena-ebert-sonarsource@users.noreply.github.com>2021-01-20 14:10:36 +0100
committersonartech <sonartech@sonarsource.com>2021-03-27 20:04:06 +0000
commit51d02b308638c31d6cd4c46125ce9155fc033ecf (patch)
treecbbe7ae91db91921bfa5a77f80cc7738ddc58693 /server/sonar-web/jest.config.js
parent49612014375251ad6c77c9c0c8ec2e296532a16f (diff)
downloadsonarqube-51d02b308638c31d6cd4c46125ce9155fc033ecf.tar.gz
sonarqube-51d02b308638c31d6cd4c46125ce9155fc033ecf.zip
BUILD-857 Add junit report format for jest tests.
Diffstat (limited to 'server/sonar-web/jest.config.js')
-rw-r--r--server/sonar-web/jest.config.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/server/sonar-web/jest.config.js b/server/sonar-web/jest.config.js
index 6b1d649224e..8dea5867955 100644
--- a/server/sonar-web/jest.config.js
+++ b/server/sonar-web/jest.config.js
@@ -26,5 +26,19 @@ module.exports = {
transform: {
'\\.js$': 'babel-jest',
'\\.(ts|tsx)$': 'ts-jest'
- }
+ },
+ reporters: [
+ 'default',
+ [
+ 'jest-junit',
+ {
+ outputDirectory: 'build/test-results/test-jest',
+ outputName: 'junit.xml',
+ ancestorSeparator: ' > ',
+ suiteNameTemplate: '{filename}',
+ classNameTemplate: '{classname}',
+ titleTemplate: '{title}'
+ }
+ ]
+ ]
};