@testomatio/reporter 0.6.5 → 0.6.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +4 -0
- package/lib/xmlReader.js +4 -1
- package/package.json +1 -1
package/Changelog.md
CHANGED
package/lib/xmlReader.js
CHANGED
|
@@ -323,6 +323,8 @@ function reduceTestCases(prev, item) {
|
|
|
323
323
|
// prepend system output
|
|
324
324
|
stack = `${testCaseItem['system-out'] || testCaseItem.log || ''}\n\n${stack}`.trim()
|
|
325
325
|
|
|
326
|
+
const preferClassname = this.stats.language === 'python';
|
|
327
|
+
|
|
326
328
|
prev.push({
|
|
327
329
|
create: true,
|
|
328
330
|
file,
|
|
@@ -332,13 +334,14 @@ function reduceTestCases(prev, item) {
|
|
|
332
334
|
run_time: testCaseItem.time,
|
|
333
335
|
status: (testCaseItem.failure || testCaseItem.error) ? 'failed' : 'passed',
|
|
334
336
|
title: testCaseItem.name,
|
|
335
|
-
suite_title: testCaseItem.classname
|
|
337
|
+
suite_title: preferClassname ? testCaseItem.classname : item.name || testCaseItem.classname,
|
|
336
338
|
})
|
|
337
339
|
});
|
|
338
340
|
return prev;
|
|
339
341
|
}
|
|
340
342
|
|
|
341
343
|
function processTestSuite(testsuite) {
|
|
344
|
+
if (!testsuite) return [];
|
|
342
345
|
if (testsuite.testsuite) return processTestSuite(testsuite.testsuite)
|
|
343
346
|
|
|
344
347
|
let suites = testsuite;
|