Socket
Socket
Sign inDemoInstall

allure-env-properties-adder

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    allure-env-properties-adder

Node module to add K-V pairs to allure report


Version published
Weekly downloads
1.5K
increased by13.16%
Maintainers
1
Install size
146 kB
Created
Weekly downloads
 

Readme

Source

Allure Env Properties Adder

Node module to add K-V pairs to allure report

npm i allure-env-properties-adder


# For easier cli usage install the package globally
npm i -g allure-env-properties-adder

Usage

From CLI:

npm i -g allure-env-properties-adder


# allure-env-properties-adder <K-V pairs>
allure-env-properties-adder "--props.K1=V1" "--props.K2=V2"

Check allure-env-properties-adder --help to get full list of command line options

It can also be used with Jasmine and Protractor with Jasmine frameworks programmatically

const AllureEnvPropsAdder = require('allure-env-properties-adder').AllureEnvPropsAdder;

jasmine.getEnv().addReporter(new AllureEnvPropsAdder({
            outputDir: <path to allure-results dir>,       // optional [default: '.']
            fileName: <file-name>,      // optional [default: 'environment.properties']
            debug: false,               // optional [default: false]
            override: true,             // optional [default: true]
            props: {                    // mandatory {K-V pairs}
                BASE_URL: 'http://test.com',
                ENVIRONMENT: 'STAG',
            }
        }));

Sample Report

Allure Screenshot

Debugging

CLI

Pass --debug with cli options

Programmatically

Use debug: true when creating the object of AllureEnvPropsAdder

Keywords

FAQs

Last updated on 10 Jun 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc