Skip to content

Commit

Permalink
Add file attr
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsmfm committed Dec 23, 2018
1 parent bcdaa23 commit 70843ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions __tests__/__snapshots__/buildJsonResults.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Object {
Object {
"_attr": Object {
"classname": "a thing should foo",
"file": "path/to/project1/__tests__/test1.test.js",
"name": "project1-foo",
"time": 0.003,
},
Expand All @@ -55,6 +56,7 @@ Object {
Object {
"_attr": Object {
"classname": "another thing should foo",
"file": "path/to/project2/__tests__/test2.test.js",
"name": "project2-foo",
"time": 0.001,
},
Expand Down
3 changes: 2 additions & 1 deletion utils/buildJsonResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ module.exports = function (report, appDirectory, options) {
_attr: {
classname: replaceVars(options.classNameTemplate, testVariables),
name: replaceVars(options.titleTemplate, testVariables),
time: tc.duration / 1000
time: tc.duration / 1000,
file: filepath
}
}]
};
Expand Down

0 comments on commit 70843ec

Please sign in to comment.