feat(reporters): add fileTemplate option to JUnit reporter#10362
feat(reporters): add fileTemplate option to JUnit reporter#10362mixelburg wants to merge 1 commit into
Conversation
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hello @mixelburg. Your PR has been labeled If you're a real person behind this contribution, please:
If you believe this was flagged by mistake, leave a comment. These measures help us reduce maintenance burden and keep the team's work efficient. See our AI contributions policy for more context. |
|
@AriPerkkio I think this would work for me. Can you look into getting this landed? |
|
Closing this as this AI clanker account has been known to be inactive in comments and ignores any reviews. Their account is also blocked |

Fixes #10341
Adds a
fileTemplateoption to the JUnit reporter, analogous to the existingclassnameTemplate. This lets users control the value of thefileattribute on<testcase>elements and thenameattribute on<testsuite>elements — useful in pnpm monorepos where the default relative path may not include enough prefix for test analytics or CODEOWNERS matching.Usage
Unlike
classnameTemplate, which only affects theclassnameattribute,fileTemplateaffects bothfileandtestsuite namewhile leavingclassnameunchanged (unlessclassnameTemplateis also set).