fixing test report (#290)
This commit is contained in:
Родитель
f73b372d92
Коммит
134c8f1013
|
@ -16,7 +16,7 @@ resources:
|
|||
jobs:
|
||||
- job: Build
|
||||
pool:
|
||||
name: Hosted VS2017
|
||||
vmImage: 'windows-2019'
|
||||
demands: npm
|
||||
timeoutInMinutes: 60
|
||||
variables:
|
||||
|
@ -64,6 +64,9 @@ jobs:
|
|||
condition: eq(variables['SPEECHSDK_RUN_TESTS'], 'true')
|
||||
- task: PublishTestResults@2
|
||||
displayName: Publish test results
|
||||
inputs:
|
||||
testRunner: JUnit
|
||||
testResultsFiles: 'test-javascript-junit.xml'
|
||||
condition: eq(variables['SPEECHSDK_RUN_TESTS'], 'true')
|
||||
- bash: |
|
||||
set -e
|
||||
|
|
|
@ -12,7 +12,6 @@ module.exports = {
|
|||
moduleFileExtensions: ["ts", "js", "jsx", "json", "node"],
|
||||
testEnvironment: "jsdom",
|
||||
collectCoverage: false,
|
||||
"reporters": ["default", "jest-junit"],
|
||||
setupFilesAfterEnv: ["./secrets/TestConfiguration.ts"],
|
||||
testTimeout : 20000
|
||||
},
|
||||
|
@ -26,9 +25,9 @@ module.exports = {
|
|||
moduleFileExtensions: ["ts", "js", "jsx", "json", "node"],
|
||||
testEnvironment: "node",
|
||||
collectCoverage: false,
|
||||
"reporters": ["default", "jest-junit"],
|
||||
setupFilesAfterEnv: ["./secrets/TestConfiguration.ts"],
|
||||
testTimeout : 30000
|
||||
}
|
||||
]
|
||||
],
|
||||
reporters: [ "default", "jest-junit" ],
|
||||
};
|
||||
|
|
|
@ -1518,17 +1518,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"@jest/types": {
|
||||
"version": "24.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz",
|
||||
"integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/istanbul-lib-coverage": "^2.0.0",
|
||||
"@types/istanbul-reports": "^1.1.1",
|
||||
"@types/yargs": "^13.0.0"
|
||||
}
|
||||
},
|
||||
"@sinonjs/commons": {
|
||||
"version": "1.7.2",
|
||||
"resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.7.2.tgz",
|
||||
|
@ -1836,15 +1825,6 @@
|
|||
"@types/node": "*"
|
||||
}
|
||||
},
|
||||
"@types/yargs": {
|
||||
"version": "13.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.3.tgz",
|
||||
"integrity": "sha512-K8/LfZq2duW33XW/tFwEAfnZlqIfVsoyRB3kfXdPXYhl0nfM8mmh7GS0jg7WrX2Dgq/0Ha/pR1PaR+BvmWwjiQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/yargs-parser": "*"
|
||||
}
|
||||
},
|
||||
"@types/yargs-parser": {
|
||||
"version": "13.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-13.1.0.tgz",
|
||||
|
@ -6723,12 +6703,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"jest-get-type": {
|
||||
"version": "24.9.0",
|
||||
"resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-24.9.0.tgz",
|
||||
"integrity": "sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q==",
|
||||
"dev": true
|
||||
},
|
||||
"jest-haste-map": {
|
||||
"version": "26.0.1",
|
||||
"resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.0.1.tgz",
|
||||
|
@ -7021,18 +6995,23 @@
|
|||
}
|
||||
},
|
||||
"jest-junit": {
|
||||
"version": "10.0.0",
|
||||
"resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-10.0.0.tgz",
|
||||
"integrity": "sha512-dbOVRyxHprdSpwSAR9/YshLwmnwf+RSl5hf0kCGlhAcEeZY9aRqo4oNmaT0tLC16Zy9D0zekDjWkjHGjXlglaQ==",
|
||||
"version": "12.0.0",
|
||||
"resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-12.0.0.tgz",
|
||||
"integrity": "sha512-+8K35LlboWiPuCnXSyiid7rFdxNlpCWWM20WEYe6IZH6psfUWKZmSpSRQ5tk0C0cBeDsvsnIzcef5mYhyJsbug==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"jest-validate": "^24.9.0",
|
||||
"mkdirp": "^0.5.1",
|
||||
"mkdirp": "^1.0.4",
|
||||
"strip-ansi": "^5.2.0",
|
||||
"uuid": "^3.3.3",
|
||||
"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==",
|
||||
"dev": true
|
||||
},
|
||||
"strip-ansi": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
|
||||
|
@ -8492,28 +8471,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"jest-validate": {
|
||||
"version": "24.9.0",
|
||||
"resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-24.9.0.tgz",
|
||||
"integrity": "sha512-HPIt6C5ACwiqSiwi+OfSSHbK8sG7akG8eATl+IPKaeIjtPOeBUd/g3J7DghugzxrGjI93qS/+RPKe1H6PqvhRQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@jest/types": "^24.9.0",
|
||||
"camelcase": "^5.3.1",
|
||||
"chalk": "^2.0.1",
|
||||
"jest-get-type": "^24.9.0",
|
||||
"leven": "^3.1.0",
|
||||
"pretty-format": "^24.9.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"camelcase": {
|
||||
"version": "5.3.1",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
|
||||
"integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"jest-watcher": {
|
||||
"version": "26.0.1",
|
||||
"resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.0.1.tgz",
|
||||
|
@ -10088,18 +10045,6 @@
|
|||
"integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
|
||||
"dev": true
|
||||
},
|
||||
"pretty-format": {
|
||||
"version": "24.9.0",
|
||||
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-24.9.0.tgz",
|
||||
"integrity": "sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@jest/types": "^24.9.0",
|
||||
"ansi-regex": "^4.0.0",
|
||||
"ansi-styles": "^3.2.0",
|
||||
"react-is": "^16.8.4"
|
||||
}
|
||||
},
|
||||
"pretty-hrtime": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz",
|
||||
|
|
11
package.json
11
package.json
|
@ -67,7 +67,7 @@
|
|||
"gulp-tslint": "^8.1.4",
|
||||
"gulp-typescript": "^5.0.1",
|
||||
"jest": "^26.0.1",
|
||||
"jest-junit": "^10.0.0",
|
||||
"jest-junit": "^12.0.0",
|
||||
"ocsp": "^1.2.0",
|
||||
"request": "^2.88.0",
|
||||
"rimraf": "^3.0.2",
|
||||
|
@ -91,11 +91,12 @@
|
|||
},
|
||||
"jest-junit": {
|
||||
"suiteName": "jest tests",
|
||||
"output": "./test-javascript-junit.xml",
|
||||
"classNameTemplate": "{classname}-{title}",
|
||||
"titleTemplate": "{classname}-{title}",
|
||||
"outputName": "./test-javascript-junit.xml",
|
||||
"classNameTemplate": "{filename}-{title}",
|
||||
"titleTemplate": "{filename}-{title}",
|
||||
"ancestorSeparator": " <20> ",
|
||||
"usePathForSuiteName": "true"
|
||||
"suiteNameTemplate": "{filepath}",
|
||||
"includeConsoleOutput": true
|
||||
},
|
||||
"dependencies": {
|
||||
"agent-base": "^6.0.0",
|
||||
|
|
Загрузка…
Ссылка в новой задаче