Skip to content

Commit

Permalink
fix(reporter-junit): choose different file name for escape XML test d…
Browse files Browse the repository at this point in the history
…ue to windows failed test
  • Loading branch information
ChrisTowles committed Aug 21, 2022
1 parent 19ce50d commit 0673943
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/reporters/tests/__snapshots__/reporters.spec.ts.snap
Expand Up @@ -236,12 +236,12 @@ AssertionError: expected 2.23606797749979 to equal 2
"
`;
exports[`JUnit reporter with outputFile with XML in error details 1`] = `
"JUNIT report written to <process-cwd>/report.xml
exports[`JUnit reporter with outputFile with XML in error message 1`] = `
"JUNIT report written to <process-cwd>/report_escape_msg_xml.xml
"
`;
exports[`JUnit reporter with outputFile with XML in error details 2`] = `
exports[`JUnit reporter with outputFile with XML in error message 2`] = `
"<?xml version=\\"1.0\\" encoding=\\"UTF-8\\" ?>
<testsuites>
<testsuite name=\\"test/core/test/basic.test.ts\\" timestamp=\\"2022-01-19T10:10:01.759Z\\" hostname=\\"hostname\\" tests=\\"1\\" failures=\\"1\\" errors=\\"0\\" skipped=\\"0\\" time=\\"0.145992842\\">
Expand Down
4 changes: 2 additions & 2 deletions test/reporters/tests/reporters.spec.ts
Expand Up @@ -103,10 +103,10 @@ test('JUnit reporter with outputFile', async () => {
rmSync(outputFile)
})

test('JUnit reporter with outputFile with XML in error details', async () => {
test('JUnit reporter with outputFile with XML in error message', async () => {
// Arrange
const reporter = new JUnitReporter()
const outputFile = resolve('report.xml')
const outputFile = resolve('report_escape_msg_xml.xml')
const context = getContext()
context.vitest.config.outputFile = outputFile

Expand Down

0 comments on commit 0673943

Please sign in to comment.