Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

protractor-junit-xml-plugin

Package Overview
Dependencies
Maintainers
8
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protractor-junit-xml-plugin - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

15

index.js

@@ -104,8 +104,9 @@ 'use strict'

let finalObj = {};
if (parseXrayId) {
let tags = name.split(':', 3);
if (tags.length > 1) {
finalObj.xrayId = tags[1];
finalObj.name = tags[2].trim();
let tags = name.split(':', 4);
if (tags[1].indexOf('XRAY-ID') > -1) {
finalObj.xrayId = tags[2];
finalObj.name = tags[3].trim();
} else {

@@ -188,5 +189,5 @@ // No xrayId found so just capturing name

pluginConfig = this.config;
console.log('HAMAHAHA: ERROR HERE ')
console.warn('Plugin config not initialized so initializing it after test: ' + result.name);
}
let testInfo = findXrayIdAndName(result.name, pluginConfig.parseXrayId);

@@ -193,0 +194,0 @@

{
"name": "protractor-junit-xml-plugin",
"version": "1.2.1",
"version": "1.2.2",
"description": "A Protracotor plugin. Report results in junit xml format including requirement ids if available.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -62,3 +62,7 @@ # protractor-junit-xml-plugin

This module includes a tests folder that contains a simple node test app and end to end(e2e) tests of the plugin. The e2e tests are in [protractor](https://www.protractortest.org/#/). To run the tests
**Unit Tests**
Unit tests are in Mocha/Chai framework. After installing dependencies(`npm install`), one can run the unit tests by `mocha tests/unitTests.js`
**End to end tests:**
This module also has end to end(e2e) tests and a simple node test app in tests folder. When you run the e2e tests, the plugin that generates a XML output file though one need to manually verify the correct entries in the XML file. The e2e tests are in [protractor](https://www.protractortest.org/#/). To run the tests
1. Firstly, install all the dependencies by `npm install`.

@@ -65,0 +69,0 @@ 2. Install protractor as a global dependency `npm i -g protractor`

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