Skip to content

Commit dea0094

Browse files
committed
Replace JUnit test output with xUnit
So we can remove a vulnerable package.
1 parent 24612a4 commit dea0094

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.vsts-ci/templates/ci-general.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ steps:
6464
- task: PublishTestResults@2
6565
displayName: Publish test results
6666
inputs:
67-
testRunner: JUnit
67+
testRunner: xUnit
6868
testResultsFiles: '**/test-results.xml'
6969
condition: succeededOrFailed()

test/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export function run(): Promise<void> {
1616
reporter: "mocha-multi-reporters",
1717
timeout: 5000,
1818
reporterOptions: {
19-
reporterEnabled: "spec, mocha-junit-reporter",
20-
mochaJunitReporterReporterOptions: {
21-
mochaFile: path.join(__dirname, "..", "..", "test-results.xml"),
22-
},
19+
reporterEnabled: "spec, xunit",
20+
xunitReporterOptions: {
21+
output: path.join(__dirname, "..", "..", "test-results.xml"),
22+
}
2323
},
2424
});
2525

0 commit comments

Comments
 (0)