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

allure-js-commons

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-js-commons

Common helper for writing plugins to allure-framework

  • 1.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
963K
increased by0.93%
Maintainers
1
Weekly downloads
 
Created

What is allure-js-commons?

The allure-js-commons package is a JavaScript library that provides a common set of utilities for generating Allure reports. Allure is a flexible, lightweight multi-language test report tool that not only shows a very concise representation of what has been tested in a neat web report form but also allows everyone participating in the development process to extract maximum of useful information from everyday execution of tests.

What are allure-js-commons's main functionalities?

Creating Test Suites

This feature allows you to create and manage test suites. The code sample demonstrates how to start and end a test suite using the AllureRuntime and InMemoryAllureWriter.

const { AllureRuntime, InMemoryAllureWriter } = require('allure-js-commons');
const runtime = new AllureRuntime({ writer: new InMemoryAllureWriter() });
const suite = runtime.startGroup('My Test Suite');
suite.endGroup();

Logging Test Steps

This feature allows you to log individual test steps within a test case. The code sample demonstrates how to start and end a test step within a test case.

const { AllureRuntime, InMemoryAllureWriter } = require('allure-js-commons');
const runtime = new AllureRuntime({ writer: new InMemoryAllureWriter() });
const test = runtime.startTest('My Test');
const step = test.startStep('My Step');
step.endStep();
test.endTest();

Attaching Files

This feature allows you to attach files to your test cases. The code sample demonstrates how to attach a screenshot to a test case.

const { AllureRuntime, InMemoryAllureWriter } = require('allure-js-commons');
const runtime = new AllureRuntime({ writer: new InMemoryAllureWriter() });
const test = runtime.startTest('My Test');
test.addAttachment('Screenshot', 'image/png', Buffer.from('...'));
test.endTest();

Other packages similar to allure-js-commons

FAQs

Package last updated on 15 Sep 2016

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