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.
- Allure requires Java 8 or higher
npm install -g allure-commandline --save-dev
allure <command> [<args>]
Run allure help
for list of supported commands
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);
});
Allure package should be downloaded from external storage. Repository content doesn't have actual code.
- Download Allure-commandline package:
./fetch-sources <version>
- Update package version
npm version 2.0.0-BETAX
(because NPM require triple numbers in version, like 0.0.0) - Pubslish result to NPM:
npm publish --tag beta
(while Allure2 is not stable)