junit-to-ctrf
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -45,10 +45,21 @@ "use strict"; | ||
suite.testsuite.forEach((nestedSuite) => { | ||
parseTestSuite(nestedSuite, suiteName); | ||
const nestedSuiteName = nestedSuite.$.name || suiteName; | ||
parseTestSuite(nestedSuite, nestedSuiteName); | ||
}); | ||
} | ||
}; | ||
result.testsuites.testsuite.forEach((suite) => { | ||
if (result.testsuites && result.testsuites.testsuite) { | ||
result.testsuites.testsuite.forEach((suite) => { | ||
const suiteName = suite.$.name; | ||
parseTestSuite(suite, suiteName); | ||
}); | ||
} | ||
else if (result.testsuite) { | ||
const suite = result.testsuite; | ||
const suiteName = suite.$.name; | ||
parseTestSuite(suite, suiteName); | ||
}); | ||
} | ||
else { | ||
console.warn('No test suites found in the provided file.'); | ||
} | ||
return testCases; | ||
@@ -55,0 +66,0 @@ }); |
{ | ||
"name": "junit-to-ctrf", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,6 +7,8 @@ # Convert JUnit XML to CTRF JSON | ||
⭐ **If you find this project useful, consider giving it a GitHub star** ⭐ | ||
## Help us grow CTRF | ||
It means a lot to us and helps us grow this open source library. | ||
⭐ **If you find this project useful, please consider following the [CTRF organisation](https://github.com/ctrf-io) and giving this repository a star** ⭐ | ||
**It means a lot to us and helps us grow this open source library.** | ||
## Usage | ||
@@ -13,0 +15,0 @@ |
15146
266
82