Report JUnit test results for SignalR TS tests (#9058)

This commit is contained in:
BrennanConroy 2019-04-04 08:21:19 -07:00 committed by GitHub
parent 73ec62adbd
commit 074b1757d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 3 deletions

View File

@ -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 }}

View File

@ -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"

View File

@ -48,7 +48,7 @@ try {
reporters: [...defaultReporters, ...(config.reporters || [])],
junitReporter: {
outputDir: "../../../artifacts/logs",
outputDir: "../../../../../artifacts/logs",
outputFile: `${process.platform}` + ".functionaltest.junit.xml",
},
});

View File

@ -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"