Report JUnit test results for SignalR TS tests (#9058)
This commit is contained in:
parent
73ec62adbd
commit
074b1757d7
|
|
@ -188,6 +188,14 @@ jobs:
|
|||
mergeTestResults: true
|
||||
buildConfiguration: $(BuildConfiguration)
|
||||
buildPlatform: $(AgentOsName)
|
||||
- task: PublishTestResults@2
|
||||
displayName: Publish junit test results
|
||||
condition: always()
|
||||
inputs:
|
||||
testRunner: junit
|
||||
testResultsFiles: '**/artifacts/logs/**/*.junit.xml'
|
||||
buildConfiguration: $(BuildConfiguration)
|
||||
buildPlatform: $(AgentOsName)
|
||||
- ${{ each artifact in parameters.artifacts }}:
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Upload artifacts from ${{ artifact.path }}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
},
|
||||
reporters: [
|
||||
"default",
|
||||
["../common/node_modules/jest-junit/index.js", { "output": "../../../artifacts/logs/" + `${process.platform}` + ".node.functional.junit.xml" }]
|
||||
["../common/node_modules/jest-junit/index.js", { "output": "../../../../../artifacts/logs/" + `${process.platform}` + ".node.functional.junit.xml" }]
|
||||
],
|
||||
transform: {
|
||||
"^.+\\.(jsx?|tsx?)$": "../common/node_modules/ts-jest"
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ try {
|
|||
reporters: [...defaultReporters, ...(config.reporters || [])],
|
||||
|
||||
junitReporter: {
|
||||
outputDir: "../../../artifacts/logs",
|
||||
outputDir: "../../../../../artifacts/logs",
|
||||
outputFile: `${process.platform}` + ".functionaltest.junit.xml",
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ module.exports = {
|
|||
},
|
||||
reporters: [
|
||||
"default",
|
||||
["./common/node_modules/jest-junit/index.js", { "output": "../../artifacts/logs/" + `${process.platform}` + ".signalr.junit.xml" }]
|
||||
["./common/node_modules/jest-junit/index.js", { "output": "../../../../artifacts/logs/" + `${process.platform}` + ".signalr.junit.xml" }]
|
||||
],
|
||||
transform: {
|
||||
"^.+\\.tsx?$": "./common/node_modules/ts-jest"
|
||||
|
|
|
|||
Loading…
Reference in New Issue