cucumber-reactive-reporter 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,8 +5,7 @@ Parses output of cucumberjs
5
5
  provides filtering via tags ans status and few other things.</b>
6
6
  <br>
7
7
  ### Why another reporter? ###
8
- <b>The main motivation behind this project was the need to control various data attachments and how they show up in reports.
9
- Existing libraries gave very sandboxy and limited options for things like attaching a custom html line to the report.
8
+ <b>The main motivation behind this project was the desire for a more dynamic experience as well as the need to get more control over various data attachments and how they are displayed.
10
9
 
11
10
  Here are some of the things that were deemed important to implement in this reporter:
12
11
  </b>
@@ -79,3 +78,5 @@ links: {
79
78
  | 1.0.5 | Fixing publishing code and adding notes |
80
79
  | 1.0.6 | Added pagination to the main feature screen, shows up if above 50 |
81
80
  | 1.0.7 | Changed feature pagination to be always on if above 10 elements, the reason why is you can change to display 10 at a time to force single column|
81
+ | 1.0.8 | Fixed json parsing error for newer cucumber version, where Before and After steps do not provide code line info|
82
+ | 1.0.9 | Fixed displayed step duration in newer versions of cucumber|
@@ -263,9 +263,6 @@ let _processStep = (state, scenarioId, st) => {
263
263
  hidden,
264
264
  keyword,
265
265
  line,
266
- match: {
267
- location
268
- },
269
266
  name,
270
267
  result: {
271
268
  duration,
@@ -273,6 +270,8 @@ let _processStep = (state, scenarioId, st) => {
273
270
  status
274
271
  }
275
272
  } = st;
273
+ let location = "";
274
+ if (st.match) location = st.match.location;
276
275
  let step = {
277
276
  args,
278
277
  duration,
@@ -259,9 +259,6 @@ let _processStep = (state, scenarioId, st) => {
259
259
  hidden,
260
260
  keyword,
261
261
  line,
262
- match: {
263
- location
264
- },
265
262
  name,
266
263
  result: {
267
264
  duration,
@@ -269,6 +266,8 @@ let _processStep = (state, scenarioId, st) => {
269
266
  status
270
267
  }
271
268
  } = st;
269
+ let location = "";
270
+ if (st.match) location = st.match.location;
272
271
  let step = {
273
272
  args,
274
273
  duration,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cucumber-reactive-reporter",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "A filterable html report generator for cucumberjs written in react",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/unsuspecting-noob/cucumber-reactive-reporter",
@@ -8,7 +8,7 @@
8
8
  "index.html": "./index.html",
9
9
  "precache-manifest.js": "./precache-manifest.js",
10
10
  "service-worker.js": "./service-worker.js",
11
- "static/js/2.LICENSE.txt": "./static/js/2.LICENSE.txt",
11
+ "static/js/2.js.LICENSE.txt": "./static/js/2.js.LICENSE.txt",
12
12
  "static/js/main.js.LICENSE.txt": "./static/js/main.js.LICENSE.txt",
13
13
  "static/media/font-awesome.css": "./static/media/fontawesome-webfont.woff",
14
14
  "static/media/300.css": "./static/media/roboto-vietnamese-300-normal.woff2",