Skip to content

Jonur/pi-cucumber-reports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PI Cucumber Reports

This project creates a visual representation of the Test Automation Overview Report from Cucumber.

How does it work?

It reads the file paths of two Cucumber JSON results files, then it generates two pie chart diagrams - one for the total Features found and one for the total Scenarios found of all Features, and finally creates a table view of detailed results of each Feature's Scenarios.

Automatically, the page refreshes every 30 seconds and each time it switches the file it fetches the results from.

The results will be updated seemlessly as the JSON files are themselves updated, since the updated files will be fetched at the next page refresh.

Installation

The project is plug and play, but it does require a server to run on, as it uses an XMLHTTPRequest to fetch the JSON files.

For development use, running npm install would be sufficient.

Configuration

The file sources/js/config.js should contain the file paths of the Cucumber JSON results files, the page interval time in seconds, as well as the pie chart colours.

The page refreshes every 30 seconds and every time it renders the test results of the next file on the list in a 360° loop logic. There also manual navigation buttons at the top right and left of the header. The pie chart colours are used for the actual Pie Diagrams. The sources/css/main.scss file contains these colours, as well, as they are needed for styling the labels on the right of the pie charts. Ideally, should the colours need changing, it should happen on both these and the SCSS file.

CSS conic-gradient() polyfill

The conic-gradient is a CSS polyfill by Lea Verou used to create light-weight pie charts without needing special tools. Instead, they can be generated either by CSS, or Javascript. Visit this page for its documentation.

About

Visual representation of the Test Automation Overview Report from Cucumber

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published