@testomatio/reporter 1.6.15 → 1.6.16-beta-xml
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/lib/xmlReader.js +5 -2
- package/package.json +1 -1
package/lib/xmlReader.js
CHANGED
|
@@ -421,7 +421,6 @@ class XmlReader {
|
|
|
421
421
|
this.formatErrors();
|
|
422
422
|
this.formatTests();
|
|
423
423
|
|
|
424
|
-
|
|
425
424
|
const dataString = {
|
|
426
425
|
...this.stats,
|
|
427
426
|
detach: this.requestParams.detach,
|
|
@@ -451,7 +450,11 @@ function reduceTestCases(prev, item) {
|
|
|
451
450
|
}
|
|
452
451
|
|
|
453
452
|
// suite inside test case
|
|
454
|
-
|
|
453
|
+
const testCase = item['test-suite']?.['test-case'];
|
|
454
|
+
if (testCase) {
|
|
455
|
+
const nestedCases = Array.isArray(testCase) ? testCase : [testCase];
|
|
456
|
+
testCases.push(...nestedCases);
|
|
457
|
+
}
|
|
455
458
|
|
|
456
459
|
const suiteOutput = item['system-out'] || item.output || item.log || '';
|
|
457
460
|
const suiteErr = item['system-err'] || item.output || item.log || '';
|