-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgraded for compatibility with Cucumber v8.9.1 + dependencies updated #266
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All those should be on your global git configuration, not in the repository.
It does not make sense to start ignoring leftovers made by each operating system or IDE.