🚀 Feature: Add file path to xunit reporter #5112
Labels
semver-minor
implementation requires increase of "minor" version number; "features"
status: accepting prs
Mocha can use your help with this one!
type: feature
enhancement proposal
Feature Request Checklist
faq
label, but none matched my issue.Overview
Filing an issue to track #4985: back in #4219, the
json
,doc
, andjson-stream
reporters were augmented to output the test filenames in addition to their other attributes. But thexunit
reporter wasn't given the same addition.Suggested Solution
#4985, literally. 😄
As in: adding
file: test.file
to the reported attributes.Alternatives
I can't think of anything. https://github.com/mochajs/mocha/pull/4985/files#r1193989943 suggests using
test?.invocationDetails?.absoluteFile
as a backup, but neitherinvocationDetails
norabsoluteFile
exist in Mocha. I think that's a Cypress-only thing.Additional Info
Adding a co-author credit as @bmish made two PRs justifying this feature. ❤️
Co-authored-by: @bmish
The text was updated successfully, but these errors were encountered: