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

cucumber-html-reporter

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cucumber-html-reporter - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

10

CHANGELOG.md

@@ -0,1 +1,7 @@

### 4.0.3 (Aug-23-2018)
* Cannot generate report due an error with Trim() - [PR#125](https://github.com/gkushang/cucumber-html-reporter/pull/125)
* if to switch statement change #155 - [PR#155](https://github.com/gkushang/cucumber-html-reporter/pull/155)
### 4.0.2 (Feb-26-2018)

@@ -16,3 +22,3 @@

* Fix for Cucumber V2, mime_type
* Fix for Cucumber V2, mime_type

@@ -31,3 +37,3 @@ ### 3.0.3 (Sep-20-2017)

* Feature: update to simple theme report [PR#106](https://github.com/gkushang/cucumber-html-reporter/pull/106)
* Fix issues: [#101](https://github.com/gkushang/cucumber-html-reporter/issues/101), [#98](https://github.com/gkushang/cucumber-html-reporter/issues/98)
* Fix issues: [#101](https://github.com/gkushang/cucumber-html-reporter/issues/101), [#98](https://github.com/gkushang/cucumber-html-reporter/issues/98)

@@ -34,0 +40,0 @@

31

lib/reporter.js

@@ -26,6 +26,8 @@ 'use strict';

var sanitize = function (name, find) {
var unsafeCharacters = find || /[\/\\\|:"\*\?<>]/g;
name = name.trim().replace(unsafeCharacters, '_');
return name;
};
var unsafeCharacters = find || /[/\|:"*?<>]/g;
if (name !== undefined) {
name = name.trim().replace(unsafeCharacters, '_');
}
return name;
};

@@ -293,17 +295,16 @@ featureOutput.summary = {

if (step.result.duration) element.time += step.result.duration;
if (step.result.status === result.status.passed) {
switch (step.result.status) {
case result.status.passed:
return element.passed++;
}
if (step.result.status === result.status.failed) {
case result.status.failed:
return element.failed++;
}
if (step.result.status === result.status.undefined) {
return element.notdefined++;
}
if (step.result.status === result.status.pending) {
case result.status.undefined:
return element.undefined++;
case result.status.pending:
return element.pending++;
}
if (step.result.status === result.status.ambiguous) {
case result.status.ambiguous:
return element.ambiguous++;
default:
break;
}

@@ -310,0 +311,0 @@

{
"name": "cucumber-html-reporter",
"version": "4.0.3",
"version": "4.0.4",
"description": "Generates Cucumber HTML reports in three different themes",

@@ -78,2 +78,10 @@ "main": "index.js",

"url": "https://github.com/xywang68"
},
{
"name": "aurell14",
"url": "https://github.com/aurell14"
},
{
"name": "mkginfo",
"url": "https://github.com/mkginfo"
}

@@ -108,3 +116,3 @@ ],

"jsonfile": "^3.0.0",
"lodash": "^4.17.2",
"lodash": "^4.17.5",
"opn": "5.3.0"

@@ -111,0 +119,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