Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

allure-commandline

Package Overview
Dependencies
Maintainers
4
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-commandline

Wrapper to install Allure-commandline via NPM

  • 2.32.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
663K
decreased by-2.86%
Maintainers
4
Weekly downloads
 
Created

What is allure-commandline?

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.

What are allure-commandline's main functionalities?

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}`);
});

Other packages similar to allure-commandline

FAQs

Package last updated on 29 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc