Skip to content

Commit 1245e7e

Browse files
Update lib/reporters/xunit.js
Co-authored-by: Ville Lahdenvuo <[email protected]>
1 parent a91e86c commit 1245e7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reporters/xunit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ XUnit.prototype.test = function (test) {
158158
var attrs = {
159159
classname: test.parent.fullTitle(),
160160
name: test.title,
161-
file: test.file,
161+
file: test.file || test?.invocationDetails?.absoluteFile,
162162
time: test.duration / 1000 || 0
163163
};
164164

0 commit comments

Comments
 (0)