JSPM

  • Created
  • Published
  • Downloads 1020175
  • Score
    100M100P100Q264399F
  • License ISC

Wrapper to install Allure-commandline via NPM

Package Exports

  • allure-commandline
  • allure-commandline/dist/bin/allure

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (allure-commandline) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Allure Commandline

npm version

NPM wrapper around allure-commandline

Allure Commandline is a tool to generate Allure report from test results. Now you can get it installed directly from NPM.

Install

  1. Allure requires Java 8 or higher
  2. npm install -g allure-commandline --save-dev

Usage

allure <command> [<args>]

Run allure help for list of supported commands

Node.js API

You can also call Allure commands from your Node.js code:

var allure = require('allure-commandline');

// returns ChildProcess instance
var generation = allure(['generate', 'allure-results']);

generation.on('exit', function(exitCode) {
    console.log('Generation is finished with code:', exitCode);
});

Development

Allure package should be downloaded from external storage. Repository content doesn't have actual code.

  1. Download Allure-commandline package: ./fetch-sources <version>
  2. Update package version npm version 2.0.0-BETAX (because NPM require triple numbers in version, like 0.0.0)
  3. Pubslish result to NPM: npm publish --tag beta (while Allure2 is not stable)