Skip to content

Commit d77d974

Browse files
committed
test: prepare JUnit file attribute test normalization
Add file attribute normalization in JUnit test output transform to support upcoming file attribute feature in JUnit XML reporter.
1 parent af20ce5 commit d77d974

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/parallel/test-runner-output.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function replaceJunitDuration(str) {
3838
.replaceAll(/time="[0-9.]+"/g, 'time="*"')
3939
.replaceAll(/duration_ms [0-9.]+/g, 'duration_ms *')
4040
.replaceAll(`hostname="${hostname()}"`, 'hostname="HOSTNAME"')
41+
.replaceAll(/file="[^"]*"/g, 'file="*"')
4142
.replace(stackTraceBasePath, '$3');
4243
}
4344

0 commit comments

Comments
 (0)