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

@saucelabs/cucumber-reporter

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saucelabs/cucumber-reporter

Reports your tests to Sauce Labs

  • 1.1.1
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

sauce-cucumber-reporter

This Cucumber plugin reports each project to your Sauce Labs account.

Installation

Install from npm:

npm install @saucelabs/cucumber-reporter

Sauce Labs Credentials

Set the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables to enable the plugin to report your results to Sauce Labs. Your Sauce Labs Username and Access Key can be found in your dashboard.

Usage

Add to your Cucumber formatter:

npx cucumber-js --format=@saucelabs/cucumber-reporter

Alternatively, configure it using cucumber.json by adding '@saucelabs/cucumber-reporter' to the reporter section of your configuration:

{
  "default": {
    "requireModule": ["ts-node/register"],
    "format": "@saucelabs/cucumber-reporter"
  }
}

Plugin Configuration

Configure the @saucelabs/cucumber-reporter through your Cucumber config file.

Example cucumber.json:

{
  "default": {
    "requireModule": ["ts-node/register"],
    "format": "@saucelabs/cucumber-reporter",
    "formatOptions": {
      "suiteName": "my cucumber test",
      "build": "mybuild",
      "tags": ["demo", "e2e", "cucumber"],
      "region": "eu-central-1"
    }
  }
}

Configuration Parameters:

NameDescriptionType
browserNameSets the browser name.String
buildSets a build ID. Default: ''.String
tagsTags to add to the uploaded Sauce job. Default: [].String[]
regionSets the region. Default: us-west-1.String
uploadWhether to upload report and assets to Sauce. Default: true.boolean
outputFileThe local path to write the sauce test report. Default: sauce-test-report.json.String
suiteNameSets the suite name. Default: Unnamed job ${job_id}.String

FAQs

Package last updated on 30 Aug 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