npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

cucumber-report-store

1.0.5 • Public • Published

cucumber-report-store

Cucumber Report Store - Cucumber saves reports in json files, this turns them into fairly pretty html

npm version dependencies Build Status Pledge To Arupex!

Install

npm install cucumber-report-store

What's it do ?

Cucumber saves reports in json files, this turns them into fairly pretty html Why not use the html reporter? 1. Its not pretty enough 2. Its not extensible 3. The End Goal

How To Use:

var StorageFactory = require('cucumber-report-store');
   var report = new StorageFactory();
   report.addJSONReport(require('./testFeatures.js'));
    report.initConfig({
        link : 'http://test-runner-server.test.com/run?testname=',
        linkLabel : 'Run: '
    });

    var fs = require('fs');

    var data = report.getHTMLReport();
    fs.writeFileSync('test.html', data);

The End Goal:

Create a Cucumber Test Report you can interact with
Interact with you say?
Yes, we want the ability to rerun tests
But How?
A server side library that interacts with cucumber to rerun the tests right on the stack itself
    and have the report get automatically updated!

Future Feature:

Support Templating - for custom Html
Server Side Code - express middleware

Keywords

none

install

npm i cucumber-report-store

Downloadsweekly downloads

14

version

1.0.5

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability