1.0.0-beta • Published 3 years ago

@szboynono/k6-html-reporter v1.0.0-beta

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

k6-html-reporter

A html reporter for k6

Notes: The project is still under development

Install

npm install k6-html-reporter --save-dev

Usage

  1. Install the package
  2. Create an index.js and specify the options:
const reporter = require('k6-html-reporter');

const options = {
        jsonFile: <path-to-json-report>,
        output: <path-to-output-directory>,
    };

reporter.generateSummaryReport(options);
    
  1. Run the k6 test and make sure to output the summary report to a json file by doing k6 run --summary-export=<path-to-json-report> <test-script>
  2. Run the above code in a node.js script after execution:
node index.js
1.0.0-beta

3 years ago