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.1.0 to 1.1.1

27

index.js

@@ -34,6 +34,6 @@ 'use strict'

let resolveCompleteFileName = (givenFileName, givenDir, uniqueFolder) => {
let resolveCompleteFileName = (givenFileName, givenDir, uniqueFolder, givenTimestamp) => {
// let OUTDIR_FINAL = ''
if(uniqueFolder){
OUTDIR_FINAL = (givenDir || '_test-reports/e2e-test-results') + '/browser-based-results_' + browser.timeTillMinuteStamp;
OUTDIR_FINAL = (givenDir || '_test-reports/e2e-test-results') + '/browser-based-results_' + givenTimestamp;
} else {

@@ -126,5 +126,5 @@ OUTDIR_FINAL = (givenDir || '_test-reports/e2e-test-results') + '/browser-based-results';

if (pluginConfig.uniqueName === false){
outputFile = resolveCompleteFileName(pluginConfig.filename, pluginConfig.outdir, pluginConfig.uniqueFolder);
outputFile = resolveCompleteFileName(pluginConfig.fileName, pluginConfig.outdir, pluginConfig.uniqueFolder, pluginConfig.timeTillMinuteStamp);
} else {
outputFile = resolveCompleteFileName(Math.round((new Date()).getTime() / 1000) + '.xml', pluginConfig.outdir, pluginConfig.uniqueFolder);
outputFile = resolveCompleteFileName(Math.round((new Date()).getTime() / 1000) + '.xml', pluginConfig.outdir, pluginConfig.uniqueFolder, pluginConfig.timeTillMinuteStamp);
}

@@ -180,16 +180,19 @@ // console.log('OUTPUT FILE: ' +outputFile);

let vcsVersion = ' ';
let summary = 'Protractor UI e2e tests against ' + browser.baseUrl;
console.debug('summary: ' + summary);
if(pluginConfig.useSapphireVCSBuildNumber) {
vcsVersion = await browser.executeScript('return sapphireWebAppConfig.appVersion');
console.log('VCSVersion: ' + vcsVersion)
} else if (pluginConfig.buildNumber !== 'Default') {
vcsVersion = plugin.buildNumber;
}
let metaDataContents = '{buildNumber: ' + vcsVersion + '},\n{summary + ' + browser.params.metadataFile.summary + '}'
fs.writeFile(OUTDIR_FINAL + "/Metadata.properties", metaDataContents, function (err) {
let metaDataContents = {
buildNumber: vcsVersion,
summary: summary
}
fs.writeFileSync(OUTDIR_FINAL + "/metadata.json", JSON.stringify(metaDataContents), function (err) {
if (err) {
console.warn('Cannot write Metadata file xml\n\t' + err.message);
console.warn('Cannot write metadata file\n\t' + err.message);
} else {
console.debug('Metadata file results written to Metadata.properties');
console.debug('Metadata file results written to metadata.json');
}});
let suite = suites[getBrowserId()];

@@ -211,2 +214,2 @@

module.exports = new JUnitXmlPlugin();
module.exports.JUnitXrayPlugin = JUnitXmlPlugin;
module.exports.JUnitXrayPlugin = JUnitXmlPlugin;
{
"name": "protractor-junit-xml-plugin",
"version": "1.1.0",
"version": "1.1.1",
"description": "A Protracotor plugin. Report results in junit xml format including requirement ids if available.",

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

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