🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

cucumber-html

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cucumber-html - npm Package Compare versions

Comparing version

to
0.2.2

.travis.yml

2

package.json

@@ -6,3 +6,3 @@ {

"description": "Cross platform HTML formatter for all implementations of Cucumber",
"version": "0.2.1",
"version": "0.2.2",
"homepage": "https://github.com/cucumber/cucumber-html",

@@ -9,0 +9,0 @@ "repository": {

@@ -0,1 +1,2 @@

[![build status](https://secure.travis-ci.org/cucumber/cucumber-html.png)](http://travis-ci.org/cucumber/cucumber-html)
Cucumber-HTML is a cross-platform HTML formatter for all the Cucumber implementations. It's currently only used by Cucumber-JVM and Cucumber.js, but may be used by other implementations later.

@@ -12,1 +13,10 @@

wkhtmltopdf cucumber-report.html cucumber-report.pdf
## Release process
* Make sure `pom.xml` has a `X.Y.Z-SNAPSHOT` version
* Make sure `package.json` has a `X.Y.Z` version
Now release:
make release

@@ -81,8 +81,13 @@ var CucumberHTML = {};

currentStep.addClass(result.status);
if (result.status == 'failed') {
populateStepError(currentStep, result.error_message);
}
currentElement.addClass(result.status);
var isLastStep = currentSteps.find('li:nth-child(' + currentStepIndex + ')').length == 0;
if(isLastStep) {
if(currentSteps.find('.failed').length == 0) {
if (isLastStep) {
if (currentSteps.find('.failed').length == 0) {
// No failed steps. Collapse it.
currentElement.find('details').removeAttr('open');
} else {
currentElement.find('details').attr('open', 'open');
}

@@ -93,5 +98,18 @@ }

this.embedding = function(mimeType, data) {
if(mimeType.match(/^image\//)) {
currentStep.append("<div><img src='" + data + "'></div>");
if (mimeType.match(/^image\//))
{
currentStep.append('<img src="' + data + '">');
}
else if (mimeType.match(/^video\//))
{
currentStep.append('<video src="' + data + '" type="' + mimeType + '" autobuffer controls>Your browser doesn\'t support video.</video>');
}
else if (mimeType.match(/^text\//))
{
this.write(data);
}
};
this.write = function(text) {
currentStep.append('<pre class="embedded-text">' + text + '</pre>');
}

@@ -144,2 +162,9 @@

}
function populateStepError(e, error) {
if (error !== undefined) {
errorNode = $('.error', $templates).clone().appendTo(e);
errorNode.text(error);
}
}
};

@@ -165,2 +190,4 @@

\
<pre class="error"></pre>\
\
<table class="data_table">\

@@ -187,2 +214,4 @@ <tbody>\

module.exports = CucumberHTML;
}
} else if (typeof define !== 'undefined') {
define([], function() { return CucumberHTML; });
}

@@ -6,3 +6,3 @@ {

"description": "Cross platform HTML formatter for all implementations of Cucumber",
"version": "0.2.0",
"version": "0.2.2",
"homepage": "https://github.com/cucumber/cucumber-html",

@@ -9,0 +9,0 @@ "repository": {

@@ -0,1 +1,2 @@

[![build status](https://secure.travis-ci.org/cucumber/cucumber-html.png)](http://travis-ci.org/cucumber/cucumber-html)
Cucumber-HTML is a cross-platform HTML formatter for all the Cucumber implementations. It's currently only used by Cucumber-JVM and Cucumber.js, but may be used by other implementations later.

@@ -12,1 +13,10 @@

wkhtmltopdf cucumber-report.html cucumber-report.pdf
## Release process
* Make sure `pom.xml` has a `X.Y.Z-SNAPSHOT` version
* Make sure `package.json` has a `X.Y.Z` version
Now release:
make release

@@ -81,8 +81,13 @@ var CucumberHTML = {};

currentStep.addClass(result.status);
if (result.status == 'failed') {
populateStepError(currentStep, result.error_message);
}
currentElement.addClass(result.status);
var isLastStep = currentSteps.find('li:nth-child(' + currentStepIndex + ')').length == 0;
if(isLastStep) {
if(currentSteps.find('.failed').length == 0) {
if (isLastStep) {
if (currentSteps.find('.failed').length == 0) {
// No failed steps. Collapse it.
currentElement.find('details').removeAttr('open');
} else {
currentElement.find('details').attr('open', 'open');
}

@@ -93,5 +98,18 @@ }

this.embedding = function(mimeType, data) {
if(mimeType.match(/^image\//)) {
currentStep.append("<div><img src='" + data + "'></div>");
if (mimeType.match(/^image\//))
{
currentStep.append('<img src="' + data + '">');
}
else if (mimeType.match(/^video\//))
{
currentStep.append('<video src="' + data + '" type="' + mimeType + '" autobuffer controls>Your browser doesn\'t support video.</video>');
}
else if (mimeType.match(/^text\//))
{
this.write(data);
}
};
this.write = function(text) {
currentStep.append('<pre class="embedded-text">' + text + '</pre>');
}

@@ -144,2 +162,9 @@

}
function populateStepError(e, error) {
if (error !== undefined) {
errorNode = $('.error', $templates).clone().appendTo(e);
errorNode.text(error);
}
}
};

@@ -165,2 +190,4 @@

\
<pre class="error"></pre>\
\
<table class="data_table">\

@@ -187,2 +214,4 @@ <tbody>\

module.exports = CucumberHTML;
}
} else if (typeof define !== 'undefined') {
define([], function() { return CucumberHTML; });
}

@@ -81,8 +81,13 @@ var CucumberHTML = {};

currentStep.addClass(result.status);
if (result.status == 'failed') {
populateStepError(currentStep, result.error_message);
}
currentElement.addClass(result.status);
var isLastStep = currentSteps.find('li:nth-child(' + currentStepIndex + ')').length == 0;
if(isLastStep) {
if(currentSteps.find('.failed').length == 0) {
if (isLastStep) {
if (currentSteps.find('.failed').length == 0) {
// No failed steps. Collapse it.
currentElement.find('details').removeAttr('open');
} else {
currentElement.find('details').attr('open', 'open');
}

@@ -93,5 +98,18 @@ }

this.embedding = function(mimeType, data) {
if(mimeType.match(/^image\//)) {
currentStep.append("<div><img src='" + data + "'></div>");
if (mimeType.match(/^image\//))
{
currentStep.append('<img src="' + data + '">');
}
else if (mimeType.match(/^video\//))
{
currentStep.append('<video src="' + data + '" type="' + mimeType + '" autobuffer controls>Your browser doesn\'t support video.</video>');
}
else if (mimeType.match(/^text\//))
{
this.write(data);
}
};
this.write = function(text) {
currentStep.append('<pre class="embedded-text">' + text + '</pre>');
}

@@ -144,2 +162,9 @@

}
function populateStepError(e, error) {
if (error !== undefined) {
errorNode = $('.error', $templates).clone().appendTo(e);
errorNode.text(error);
}
}
};

@@ -165,2 +190,4 @@

\
<pre class="error"></pre>\
\
<table class="data_table">\

@@ -187,2 +214,4 @@ <tbody>\

module.exports = CucumberHTML;
}
} else if (typeof define !== 'undefined') {
define([], function() { return CucumberHTML; });
}
$(document).ready(function() {
var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));
var N = document.location.hash ? parseInt(document.location.hash.substring(1)) : 1;
var start = new Date().getTime();
for(var n = 0; n < N; n++) {
formatter.uri('report.feature');

@@ -43,2 +46,5 @@ formatter.feature({

formatter.result({status:'undefined', duration: 0});
formatter.embedding('text/plain', 'Look at this video');
formatter.embedding('video/mp4', 'http://www.808.dk/pics/video/gizmo.mp4');
formatter.write('What a nice helicopter');
formatter.match({uri:'report.feature'});

@@ -56,2 +62,5 @@ formatter.result({status:'skipped', duration: 0});

formatter.result({status:'failed', error_message:'I didn\'t do it.', duration: 0});
}
console.log('Rendered %s features in %s ms', N, new Date().getTime() - start);
});

@@ -81,8 +81,13 @@ var CucumberHTML = {};

currentStep.addClass(result.status);
if (result.status == 'failed') {
populateStepError(currentStep, result.error_message);
}
currentElement.addClass(result.status);
var isLastStep = currentSteps.find('li:nth-child(' + currentStepIndex + ')').length == 0;
if(isLastStep) {
if(currentSteps.find('.failed').length == 0) {
if (isLastStep) {
if (currentSteps.find('.failed').length == 0) {
// No failed steps. Collapse it.
currentElement.find('details').removeAttr('open');
} else {
currentElement.find('details').attr('open', 'open');
}

@@ -93,5 +98,18 @@ }

this.embedding = function(mimeType, data) {
if(mimeType.match(/^image\//)) {
currentStep.append("<div><img src='" + data + "'></div>");
if (mimeType.match(/^image\//))
{
currentStep.append('<img src="' + data + '">');
}
else if (mimeType.match(/^video\//))
{
currentStep.append('<video src="' + data + '" type="' + mimeType + '" autobuffer controls>Your browser doesn\'t support video.</video>');
}
else if (mimeType.match(/^text\//))
{
this.write(data);
}
};
this.write = function(text) {
currentStep.append('<pre class="embedded-text">' + text + '</pre>');
}

@@ -144,2 +162,9 @@

}
function populateStepError(e, error) {
if (error !== undefined) {
errorNode = $('.error', $templates).clone().appendTo(e);
errorNode.text(error);
}
}
};

@@ -165,2 +190,4 @@

\
<pre class="error"></pre>\
\
<table class="data_table">\

@@ -187,2 +214,4 @@ <tbody>\

module.exports = CucumberHTML;
}
} else if (typeof define !== 'undefined') {
define([], function() { return CucumberHTML; });
}
$(document).ready(function() {
var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));
var N = document.location.hash ? parseInt(document.location.hash.substring(1)) : 1;
var start = new Date().getTime();
for(var n = 0; n < N; n++) {
formatter.uri('report.feature');

@@ -43,2 +46,5 @@ formatter.feature({

formatter.result({status:'undefined', duration: 0});
formatter.embedding('text/plain', 'Look at this video');
formatter.embedding('video/mp4', 'http://www.808.dk/pics/video/gizmo.mp4');
formatter.write('What a nice helicopter');
formatter.match({uri:'report.feature'});

@@ -56,2 +62,5 @@ formatter.result({status:'skipped', duration: 0});

formatter.result({status:'failed', error_message:'I didn\'t do it.', duration: 0});
}
console.log('Rendered %s features in %s ms', N, new Date().getTime() - start);
});

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

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