multiple-cucumber-html-reporter
Advanced tools
Comparing version 1.1.0 to 1.2.0
CHANGELOG | ||
========= | ||
<a name="1.2.0"></a> | ||
## [1.2.0](https://github.com/wswebcreation/multiple-cucumber-html-reporter/compare/v1.1.0...v1.2.0) (2017-11-13) | ||
### Features | ||
* **feature:** add `app` as a metadata and update the docs | ||
<a name="1.1.0"></a> | ||
@@ -5,0 +12,0 @@ ## [1.1.0](https://github.com/wswebcreation/multiple-cucumber-html-reporter/compare/v1.0.1...v1.1.0) (2017-09-22) |
@@ -57,2 +57,4 @@ 'use strict'; | ||
let suite = { | ||
app: 0, | ||
browser: 0, | ||
name: '', | ||
@@ -146,2 +148,4 @@ version: 'version', | ||
feature.id = `${uuid()}.${feature.id}`.replace(/[^a-zA-Z0-9-_]/g, '-'); | ||
feature.app = 0; | ||
feature.browser = 0; | ||
@@ -169,2 +173,6 @@ if (!feature.elements) { | ||
// Check if browser / app is used | ||
suite.app = feature.metadata.app ? suite.app + 1 : suite.app; | ||
suite.browser = feature.metadata.browser ? suite.browser + 1 : suite.browser; | ||
// Percentages | ||
@@ -171,0 +179,0 @@ feature.scenarios.ambiguousPercentage = _calculatePercentage(feature.scenarios.ambiguous, feature.scenarios.total); |
{ | ||
"name": "multiple-cucumber-html-reporter", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Generate beautifull cucumberjs reports for multiple instances (browsers / devices)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -169,2 +169,12 @@ Multiple Cucumber HTML Reporter | ||
### `metadata.app.name` | ||
- **Type:** `string` | ||
**e.g.:** The version of the app. | ||
### `metadata.app.version` | ||
- **Type:** `string` | ||
**e.g.:** The version of the app. | ||
### `metadata.browser.name` | ||
@@ -207,3 +217,4 @@ - **Type:** `string` | ||
### Metadata example scenario with and without known data | ||
![Snapshot - Scenario browser / device info](./docs/images/scenario-metadata.jpg "Snapshot - Scenario browser / device info") | ||
![Snapshot - Scenario browser / device info](./docs/images/scenario-browser-metadata.jpg "Snapshot - Scenario browser / device info") | ||
![Snapshot - Scenario app / device info](./docs/images/scenario-app-metadata.jpg "Snapshot - Scenario app / device info") | ||
![Snapshot - Scenario browser / device info not known](./docs/images/scenario-no-metadata.jpg "Snapshot - Scenario browser / device info not known") | ||
@@ -210,0 +221,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
82070
792
287
15