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

@wdio/spec-reporter

Package Overview
Dependencies
Maintainers
3
Versions
285
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/spec-reporter

A WebdriverIO plugin to report in spec style

  • 9.4.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
552K
increased by12.9%
Maintainers
3
Weekly downloads
 
Created

What is @wdio/spec-reporter?

@wdio/spec-reporter is a WebdriverIO plugin that provides a detailed and formatted output of test results. It is designed to give a clear and concise summary of test execution, including information about passed, failed, and skipped tests. This reporter is particularly useful for developers and testers who want to quickly understand the outcome of their test suites.

What are @wdio/spec-reporter's main functionalities?

Formatted Test Results

This feature provides a formatted output of test results, including stack traces for failed tests, summaries of failures and pending tests, and durations of test execution. The configuration options allow customization of what information is displayed.

const { SpecReporter } = require('@wdio/spec-reporter');

exports.config = {
  reporters: ['spec'],
  reporterOptions: {
    spec: {
      displayStacktrace: 'all',
      displayFailuresSummary: true,
      displayPendingSummary: true,
      displaySuccessfulSpec: true,
      displayFailedSpec: true,
      displayPendingSpec: true,
      displayDuration: true
    }
  }
};

Customizable Output

This feature allows customization of the symbols used in the output for passed, failed, and pending tests. This can help in making the test results more readable and aligned with the team's preferences.

const { SpecReporter } = require('@wdio/spec-reporter');

exports.config = {
  reporters: ['spec'],
  reporterOptions: {
    spec: {
      symbols: {
        passed: '[PASS]',
        failed: '[FAIL]',
        pending: '[PEND]'
      }
    }
  }
};

Integration with WebdriverIO

The @wdio/spec-reporter integrates seamlessly with WebdriverIO, making it easy to add to your existing WebdriverIO configuration. This feature ensures that the reporter works out of the box with WebdriverIO's test runner.

const { SpecReporter } = require('@wdio/spec-reporter');

exports.config = {
  reporters: ['spec'],
  reporterOptions: {
    spec: {
      displayStacktrace: 'summary'
    }
  }
};

Other packages similar to @wdio/spec-reporter

Keywords

FAQs

Package last updated on 12 Dec 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