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

multiple-cucumber-html-reporter

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiple-cucumber-html-reporter - npm Package Compare versions

Comparing version 1.10.2 to 1.11.0

.github/ISSUE_TEMPLATE/--bug-report.md

12

CHANGELOG.md
CHANGELOG
=========
=======
<a name="1.11.0"></a>
## [1.11.0](https://github.com/wswebcreation/multiple-cucumber-html-reporter/compare/v1.10.2...v1.11.0) (2018-08-17)
### Feature
* **feature:** Add scenario description [53](https://github.com/wswebcreation/multiple-cucumber-html-reporter/pull/53), tnx to [Stefano Tamagnini](https://github.com/yoghi)
* **feature:** Add status of a feature file to `undefined` if 1 or multiple scenario's in a feature don't have a step implementation [58](https://github.com/wswebcreation/multiple-cucumber-html-reporter/pull/58), tnx to [David de Kanter](https://github.com/daviddekanter)
* **feature:** Add support to for html-embeddings [59](https://github.com/wswebcreation/multiple-cucumber-html-reporter/pull/59), tnx to [Yaron Assa](https://github.com/yaronassa)
### Refactor
* **refactor:** Update undefined code examples
<a name="1.10.2"></a>

@@ -6,0 +16,0 @@ ## [1.10.2](https://github.com/wswebcreation/multiple-cucumber-html-reporter/compare/v1.10.1...v1.10.2) (2018-07-03)

57

lib/generate-report.js

@@ -32,3 +32,3 @@ 'use strict';

pending: 'pending',
undefined: 'undefined',
notDefined: 'undefined',
ambiguous: 'ambiguous'

@@ -86,2 +86,4 @@ };

passed: 0,
notDefined: 0,
pending: 0,
skipped: 0,

@@ -91,2 +93,4 @@ total: 0,

failedPercentage: 0,
notdefinedPercentage: 0,
pendingPercentage: 0,
skippedPercentage: 0,

@@ -97,8 +101,8 @@ passedPercentage: 0

scenarios: {
passed: 0,
failed: 0,
ambiguous: 0,
notDefined: 0,
pending: 0,
skipped: 0,
pending: 0,
notdefined: 0,
ambiguous: 0,
passed: 0,
total: 0

@@ -114,2 +118,4 @@ },

suite.featureCount.failedPercentage = _calculatePercentage(suite.featureCount.failed, suite.featureCount.total);
suite.featureCount.notdefinedPercentage = _calculatePercentage(suite.featureCount.notDefined, suite.featureCount.total);
suite.featureCount.pendingPercentage = _calculatePercentage(suite.featureCount.pending, suite.featureCount.total);
suite.featureCount.skippedPercentage = _calculatePercentage(suite.featureCount.skipped, suite.featureCount.total);

@@ -157,3 +163,3 @@ suite.featureCount.passedPercentage = _calculatePercentage(suite.featureCount.passed, suite.featureCount.total);

failed: 0,
notdefined: 0,
notDefined: 0,
skipped: 0,

@@ -175,2 +181,4 @@ pending: 0,

feature.isSkipped = false;
feature.isNotdefined = false;
feature.isPending = false;
suite.featureCount.total++;

@@ -193,2 +201,8 @@ feature.id = `${uuid()}.${feature.id}`.replace(/[^a-zA-Z0-9-_]/g, '-');

feature.ambiguous++;
} else if (feature.isNotdefined) {
feature.notDefined++;
suite.featureCount.notDefined++;
} else if (feature.isPending) {
feature.pending++;
suite.featureCount.pending++;
} else if (feature.isSkipped) {

@@ -214,3 +228,3 @@ feature.skipped++;

feature.scenarios.failedPercentage = _calculatePercentage(feature.scenarios.failed, feature.scenarios.total);
feature.scenarios.notdefinedPercentage = _calculatePercentage(feature.scenarios.notdefined, feature.scenarios.total);
feature.scenarios.notdefinedPercentage = _calculatePercentage(feature.scenarios.notDefined, feature.scenarios.total);
feature.scenarios.passedPercentage = _calculatePercentage(feature.scenarios.passed, feature.scenarios.total);

@@ -221,3 +235,3 @@ feature.scenarios.pendingPercentage = _calculatePercentage(feature.scenarios.pending, feature.scenarios.total);

suite.scenarios.failedPercentage = _calculatePercentage(suite.scenarios.failed, suite.scenarios.total);
suite.scenarios.notdefinedPercentage = _calculatePercentage(suite.scenarios.notdefined, suite.scenarios.total);
suite.scenarios.notdefinedPercentage = _calculatePercentage(suite.scenarios.notDefined, suite.scenarios.total);
suite.scenarios.passedPercentage = _calculatePercentage(suite.scenarios.passed, suite.scenarios.total);

@@ -239,3 +253,3 @@ suite.scenarios.pendingPercentage = _calculatePercentage(suite.scenarios.pending, suite.scenarios.total);

scenario.failed = 0;
scenario.notdefined = 0;
scenario.notDefined = 0;
scenario.skipped = 0;

@@ -254,2 +268,6 @@ scenario.pending = 0;

if (scenario.hasOwnProperty('description') && scenario.description) {
scenario.description = scenario.description.replace(new RegExp('\r?\n', 'g'), "<br />");
}
if (scenario.failed > 0) {

@@ -271,7 +289,8 @@ suite.scenarios.total++;

if (scenario.notdefined > 0) {
if (scenario.notDefined > 0) {
suite.scenarios.total++;
suite.scenarios.notdefined++;
suite.scenarios.notDefined++;
feature.scenarios.total++;
return feature.scenarios.notdefined++;
feature.isNotdefined = true;
return feature.scenarios.notDefined++;
}

@@ -283,2 +302,3 @@

feature.scenarios.total++;
feature.isPending = true;
return feature.scenarios.pending++;

@@ -324,2 +344,7 @@ }

step.text = (step.text ? step.text : []).concat([JSON.parse(embedding.data)]);
} else if (embedding.mime_type === 'text/html' || (embedding.media && embedding.media.type === 'text/html')) {
step.html = (step.html ? step.html : []).concat([
_isBase64(embedding.data) ? Base64.decode(embedding.data) :
embedding.data
]);
} else if (embedding.mime_type === 'text/plain' || (embedding.media && embedding.media.type === 'text/plain')) {

@@ -331,4 +356,4 @@ step.text = (step.text ? step.text : []).concat([

} else if (embedding.mime_type === 'image/png' || (embedding.media && embedding.media.type === 'image/png')) {
step.image = (step.image ? step.image : []).concat(['data:image/png;base64,' + embedding.data]);
step.embeddings[embeddingIndex] = {};
step.image = (step.image ? step.image : []).concat(['data:image/png;base64,' + embedding.data]);
step.embeddings[embeddingIndex] = {};
} else {

@@ -367,4 +392,4 @@ let embeddingtype = "text/plain";

if (step.result.status === RESULT_STATUS.undefined) {
return scenario.notdefined++;
if (step.result.status === RESULT_STATUS.notDefined) {
return scenario.notDefined++;
}

@@ -371,0 +396,0 @@

{
"name": "multiple-cucumber-html-reporter",
"version": "1.10.2",
"version": "1.11.0",
"description": "Generate beautifull cucumberjs reports for multiple instances (browsers / devices)",

@@ -37,3 +37,3 @@ "keywords": [

"lodash": "^4.17.5",
"moment": "^2.20.1",
"moment": "^2.21.0",
"opn": "^5.2.0",

@@ -40,0 +40,0 @@ "uuid": "^3.2.1"

@@ -21,2 +21,6 @@ Multiple Cucumber HTML Reporter

- **1.11.0:** This release has been made possible by
- [Stefano Tamagnini](https://github.com/yoghi): He added the possibility to add a scenario description (Click [here](https://wswebcreation.github.io/multiple-cucumber-html-reporter/embedded-array) and open the `As a visitor I want to be greeted` scenario)
- [David de Kanter](https://github.com/daviddekanter): He added the possibility to set the status of a feature file to `undefined` if 1 or multiple scenario's in a feature don't have a step implementation
- [Yaron Assa](https://github.com/yaronassa): He added support for html-embeddings (Click [here](https://wswebcreation.github.io/multiple-cucumber-html-reporter/embedded-array) and open the `Add a todo` scenario)
- **1.10.0:** There is now support for multiple screenshots in scenario steps, tnx to [Brian-Dawson-Nerdery](https://github.com/Brian-Dawson-Nerdery)

@@ -23,0 +27,0 @@ - **1.9.0:** A custom [`pageTitle`](./README.MD#pageTitle) and a custom [`pageFooter`](./README.MD#pageFooter) can be added, tnx to [muthukumarse](https://github.com/muthukumarse)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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