Skip to content

Commit

Permalink
Merge pull request #71 from mtsmfm/file-attr
Browse files Browse the repository at this point in the history
Add file attr
  • Loading branch information
palmerj3 authored Jan 10, 2019
2 parents 8e3205f + 8ab3d6a commit 0fb5aec
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 0fb5aec

Please sign in to comment.