Skip to content

Commit f06ccf5

Browse files
[STREAM-866] - Added jest-junit to generate test report
1 parent 2d86ade commit f06ccf5

5 files changed

Lines changed: 112 additions & 20 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ test/test-pages/*/index.html
2626
/coverage
2727

2828
/.npmrc
29+
30+
/test-results

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

66
# [Unreleased](https://github.com/MyPureCloud/genesys-cloud-webrtc-sdk/compare/v11.3.0...HEAD)
7+
# Added
8+
* [STREAM-866](https://inindca.atlassian.net/browse/STREAM-850) - Generate a test report in JUnit.xml format
9+
710
# Changed
811
* [STREAM-850](https://inindca.atlassian.net/browse/STREAM-850) - Suppress `error.ininedgecontrol.session.inactive` errors to prevent consuming UIs from presenting benign errors
912

jest.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,12 @@ module.exports = {
3939
lines: 100,
4040
statements: 100
4141
}
42-
}
42+
},
43+
reporters: [
44+
'default',
45+
['jest-junit', {
46+
outputDirectory: 'test-results/unit',
47+
outputName: 'test-results.xml'
48+
}]
49+
]
4350
};

package-lock.json

Lines changed: 96 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "genesys-cloud-webrtc-sdk",
3-
"version": "11.3.0",
3+
"version": "11.3.1",
44
"description": "client for the interfacing with Genesys Cloud WebRTC",
55
"repository": "https://github.com/mypurecloud/genesys-cloud-webrtc-sdk",
66
"license": "MIT",
@@ -67,7 +67,7 @@
6767
"process-fast": "^1.0.0",
6868
"rxjs": "^7.8.1",
6969
"safe-json-stringify": "^1.2.0",
70-
"softphone-vendor-headsets": "^2.5.4",
70+
"softphone-vendor-headsets": "^2.5.6-test-branch.2",
7171
"strict-event-emitter-types": "^2.0.0",
7272
"uuid": "^9.0.1"
7373
},
@@ -104,6 +104,7 @@
104104
"eslint-plugin-jsdoc": "^48.2.6",
105105
"jest": "^29.7.0",
106106
"jest-environment-jsdom": "^29.7.0",
107+
"jest-junit": "^16.0.0",
107108
"npm-watch": "^0.13.0",
108109
"pre-push": "^0.1.4",
109110
"purecloud-platform-client-v2": "^116.0.0",

0 commit comments

Comments
 (0)