New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

junit-to-ctrf

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

junit-to-ctrf - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

17

dist/convert.js

@@ -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 @@ });

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc