mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 06:17:10 +01:00
Add suite name to annotation title
This commit is contained in:
parent
bff3069f5c
commit
04a8489550
2 changed files with 5 additions and 5 deletions
|
|
@ -18,7 +18,7 @@ Received: false
|
||||||
at processTicksAndRejections (internal/process/task_queues.js:97:5)",
|
at processTicksAndRejections (internal/process/task_queues.js:97:5)",
|
||||||
"path": "__tests__/main.test.js",
|
"path": "__tests__/main.test.js",
|
||||||
"start_line": 10,
|
"start_line": 10,
|
||||||
"title": "Test Failed: Failing test",
|
"title": "Test Failed: 'Failing test' [__tests__\\\\main.test.js]",
|
||||||
},
|
},
|
||||||
Object {
|
Object {
|
||||||
"annotation_level": "failure",
|
"annotation_level": "failure",
|
||||||
|
|
@ -34,7 +34,7 @@ Received: false
|
||||||
at processTicksAndRejections (internal/process/task_queues.js:97:5)",
|
at processTicksAndRejections (internal/process/task_queues.js:97:5)",
|
||||||
"path": "lib/main.js",
|
"path": "lib/main.js",
|
||||||
"start_line": 2,
|
"start_line": 2,
|
||||||
"title": "Test Failed: Exception in target unit",
|
"title": "Test Failed: 'Exception in target unit' [__tests__\\\\main.test.js]",
|
||||||
},
|
},
|
||||||
Object {
|
Object {
|
||||||
"annotation_level": "failure",
|
"annotation_level": "failure",
|
||||||
|
|
@ -49,7 +49,7 @@ Received: false
|
||||||
at processTicksAndRejections (internal/process/task_queues.js:97:5)",
|
at processTicksAndRejections (internal/process/task_queues.js:97:5)",
|
||||||
"path": "__tests__/main.test.js",
|
"path": "__tests__/main.test.js",
|
||||||
"start_line": 21,
|
"start_line": 21,
|
||||||
"title": "Test Failed: Exception in test",
|
"title": "Test Failed: 'Exception in test' [__tests__\\\\main.test.js]",
|
||||||
},
|
},
|
||||||
Object {
|
Object {
|
||||||
"annotation_level": "failure",
|
"annotation_level": "failure",
|
||||||
|
|
@ -70,7 +70,7 @@ Received: false
|
||||||
at runTest (C:\\\\Users\\\\Michal\\\\Workspace\\\\dorny\\\\test-check\\\\reports\\\\jest\\\\node_modules\\\\jest-runner\\\\build\\\\runTest.js:472:34)",
|
at runTest (C:\\\\Users\\\\Michal\\\\Workspace\\\\dorny\\\\test-check\\\\reports\\\\jest\\\\node_modules\\\\jest-runner\\\\build\\\\runTest.js:472:34)",
|
||||||
"path": "__tests__/second.test.js",
|
"path": "__tests__/second.test.js",
|
||||||
"start_line": 1,
|
"start_line": 1,
|
||||||
"title": "Test Failed: Timeout test",
|
"title": "Test Failed: 'Timeout test' [__tests__\\\\second.test.js]",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"summary": "# jest tests ❌
|
"summary": "# jest tests ❌
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ function getAnnotations(junit: JunitReport, workDir: string, trackedFiles: strin
|
||||||
end_line: src.line,
|
end_line: src.line,
|
||||||
path: src.file,
|
path: src.file,
|
||||||
message: ex,
|
message: ex,
|
||||||
title: `Test Failed: ${tc.$.name}`
|
title: `Test Failed: '${tc.$.name}' [${suite.$.name}]`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue