-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from klassijs/develop
Upgraded for compatibility with Cucumber v8.9.1 + dependencies updated
- Loading branch information
Showing
27 changed files
with
1,805 additions
and
1,317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
// most folder contexts extend rules in a language-specific way (e.g. src, lambda) so these are a catch-all for other folders | ||
"root":true, | ||
"extends": [ | ||
"./coding-standards/eslint/.eslintrc.json" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
***Generate Cucumber HTML reports with pie charts*** | ||
|
||
[![Build Status](https://travis-ci.org/gkushang/cucumber-html-reporter.svg?branch=develop)](https://travis-ci.org/gkushang/cucumber-html-reporter) [![npm](https://img.shields.io/npm/v/cucumber-html-reporter.svg)](https://www.npmjs.com/package/cucumber-html-reporter) [![Dependency Status](https://david-dm.org/gkushang/cucumber-html-reporter.svg)](https://david-dm.org/gkushang/cucumber-html-reporter) [![Code Climate](https://codeclimate.com/github/gkushang/cucumber-html-reporter/badges/gpa.svg)](https://codeclimate.com/github/gkushang/cucumber-html-reporter) [![License](https://img.shields.io/npm/l/cucumber-html-reporter.svg)](LICENSE) [![contributors](https://img.shields.io/github/contributors/gkushang/cucumber-html-reporter.svg)](https://github.com/gkushang/cucumber-html-reporter/graphs/contributors) | ||
[![Build Status](https://travis-ci.org/gkushang/cucumber-html-reporter.svg?branch=develop)](https://travis-ci.org/gkushang/cucumber-html-reporter) [![npm](https://img.shields.io/npm/v/cucumber-html-reporter.svg)](https://www.npmjs.com/package/cucumber-html-reporter) [![Code Climate](https://codeclimate.com/github/gkushang/cucumber-html-reporter/badges/gpa.svg)](https://codeclimate.com/github/gkushang/cucumber-html-reporter) [![License](https://img.shields.io/npm/l/cucumber-html-reporter.svg)](LICENSE) [![contributors](https://img.shields.io/github/contributors/gkushang/cucumber-html-reporter.svg)](https://github.com/gkushang/cucumber-html-reporter/graphs/contributors) | ||
|
||
|
||
> Available HTML themes: `['bootstrap', 'hierarchy', 'foundation', 'simple']` | ||
|
@@ -30,7 +30,8 @@ npm install cucumber-html-reporter --save-dev | |
|
||
***Notes:*** | ||
|
||
* Latest version supports Cucumber 3 | ||
* Latest version supports Cucumber 8 | ||
* Install `[email protected]` for cucumber version `< Cucumber@8` | ||
* Install `[email protected]` for cucumber version `< Cucumber@3` | ||
* Install `[email protected]` for cucumber version `< Cucumber@2` | ||
* Install `[email protected]` for node version <0.12 | ||
|
@@ -40,7 +41,7 @@ npm install cucumber-html-reporter --save-dev | |
|
||
Let's get you started: | ||
|
||
1. Install the package through npm | ||
1. Install the package through npm or yarn | ||
2. Create an index.js and specify the options. Example of `bootstrap` theme: | ||
|
||
```js | ||
|
@@ -249,12 +250,15 @@ Pass the _Key-Value_ pair as per your need, as shown in below example, | |
|
||
Capture and Attach screenshots to the Cucumber Scenario and HTML report will render the screenshot image | ||
|
||
**for Cucumber V1** | ||
**for Cucumber V8** | ||
```javascript | ||
|
||
driver.takeScreenshot().then(function (buffer) { | ||
return scenario.attach(new Buffer(buffer, 'base64'), 'image/png'); | ||
}; | ||
let world = this; | ||
|
||
return driver.takeScreenshot().then((screenShot) => { | ||
// screenShot is a base-64 encoded PNG | ||
world.attach(screenShot, 'image/png'); | ||
}); | ||
|
||
``` | ||
|
||
|
@@ -269,6 +273,15 @@ Capture and Attach screenshots to the Cucumber Scenario and HTML report will ren | |
|
||
``` | ||
**for Cucumber V1** | ||
```javascript | ||
|
||
driver.takeScreenshot().then(function (buffer) { | ||
return scenario.attach(new Buffer(buffer, 'base64'), 'image/png'); | ||
}; | ||
|
||
``` | ||
#### Attach Plain Text to HTML report | ||
Attach plain-texts/data to HTML report to help debug/review the results | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion":2017, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["import", "prettier"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings" | ||
], | ||
"rules": { | ||
"prettier/prettier": [ | ||
"warn", | ||
{ | ||
"singleQuote": true, | ||
"printWidth": 120 | ||
} | ||
], | ||
"no-const-assign": "warn", | ||
"no-this-before-super": "warn", | ||
"no-undef": "warn", | ||
"no-unreachable": "warn", | ||
"no-unused-vars": "warn", | ||
"constructor-super": "warn", | ||
"valid-typeof": "warn", | ||
"linebreak-style": [ "error", "unix" ], | ||
"no-console": [ 0, "error" ], | ||
"indent": [ "error", 2 ], | ||
"semi": [ "error", "always" ], | ||
"quotes":["error", "single"] | ||
}, | ||
"globals": { | ||
"noImplicitAny": "readonly", | ||
"noImplicitThis": "readonly", | ||
"strictNullChecks": "readonly", | ||
"strictFunctionTypes": "readonly", | ||
"noEmit": "readonly", | ||
"forceConsistentCasingInFileNames": "readonly" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.