Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
allure-commandline
Advanced tools
The allure-commandline npm package is a command-line interface for Allure, a flexible, lightweight multi-language test report tool. It allows users to generate, serve, and open Allure reports from the command line.
Generate Allure Report
This feature allows you to generate an Allure report from the specified input directory and output it to the specified output directory.
const { exec } = require('child_process');
exec('allure generate <input-directory> -o <output-directory>', (err, stdout, stderr) => {
if (err) {
console.error(`Error: ${err.message}`);
return;
}
if (stderr) {
console.error(`Stderr: ${stderr}`);
return;
}
console.log(`Stdout: ${stdout}`);
});
Serve Allure Report
This feature allows you to serve an Allure report from the specified input directory, making it accessible via a local web server.
const { exec } = require('child_process');
exec('allure serve <input-directory>', (err, stdout, stderr) => {
if (err) {
console.error(`Error: ${err.message}`);
return;
}
if (stderr) {
console.error(`Stderr: ${stderr}`);
return;
}
console.log(`Stdout: ${stdout}`);
});
Open Allure Report
This feature allows you to open an existing Allure report from the specified output directory.
const { exec } = require('child_process');
exec('allure open <output-directory>', (err, stdout, stderr) => {
if (err) {
console.error(`Error: ${err.message}`);
return;
}
if (stderr) {
console.error(`Stderr: ${stderr}`);
return;
}
console.log(`Stdout: ${stdout}`);
});
Mochawesome is a custom reporter for the Mocha JavaScript test framework that generates a visually appealing HTML/CSS report. Unlike allure-commandline, which supports multiple testing frameworks, mochawesome is specifically designed for Mocha.
jest-html-reporter is a Jest test results processor that generates a simple HTML report. It is similar to allure-commandline in that it provides a visual representation of test results, but it is specifically tailored for Jest.
cucumber-html-reporter is a Cucumber.js HTML report generator. It is similar to allure-commandline in that it provides detailed test reports, but it is specifically designed for Cucumber.js.
NPM wrapper for Allure Commandline
npm install -g allure-commandline --save-dev
allure <command> [<args>]
Run allure help
for a 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 packages should be downloaded from external storage. Repository content doesn't have actual code.
$ npm version 2.13.0
./fetch-source
npm publish
FAQs
Wrapper to install Allure-commandline via NPM
The npm package allure-commandline receives a total of 544,558 weekly downloads. As such, allure-commandline popularity was classified as popular.
We found that allure-commandline demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.