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
|
mergeTestResults: true
|
||||||
buildConfiguration: $(BuildConfiguration)
|
buildConfiguration: $(BuildConfiguration)
|
||||||
buildPlatform: $(AgentOsName)
|
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 }}:
|
- ${{ each artifact in parameters.artifacts }}:
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: Upload artifacts from ${{ artifact.path }}
|
displayName: Upload artifacts from ${{ artifact.path }}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
reporters: [
|
reporters: [
|
||||||
"default",
|
"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: {
|
transform: {
|
||||||
"^.+\\.(jsx?|tsx?)$": "../common/node_modules/ts-jest"
|
"^.+\\.(jsx?|tsx?)$": "../common/node_modules/ts-jest"
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ try {
|
||||||
reporters: [...defaultReporters, ...(config.reporters || [])],
|
reporters: [...defaultReporters, ...(config.reporters || [])],
|
||||||
|
|
||||||
junitReporter: {
|
junitReporter: {
|
||||||
outputDir: "../../../artifacts/logs",
|
outputDir: "../../../../../artifacts/logs",
|
||||||
outputFile: `${process.platform}` + ".functionaltest.junit.xml",
|
outputFile: `${process.platform}` + ".functionaltest.junit.xml",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
reporters: [
|
reporters: [
|
||||||
"default",
|
"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: {
|
transform: {
|
||||||
"^.+\\.tsx?$": "./common/node_modules/ts-jest"
|
"^.+\\.tsx?$": "./common/node_modules/ts-jest"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue